175 Posts
webcastor
7 years ago
Topic

Is there a way to sort by column (with click on column name), since sort order is supposed to be hardcoded in the search&list form?

I tried trivial "hacks" such as adding &order=field_name to the url, but that does not work.

I tried adding

<a href="#" onclick="Joomla.tableOrdering('a.field_name','asc','');return false;">Field name</a>

... on column headers, copying what's on Joomla category list column headers, but that does not show any sign of life, either. (Note: it is present in the page HTML code, so it's not that).

Any ideas? Other than creating different lists for different sort orders...

Get a Book for SEBLOD
4229 Posts
Kadministrator
7 years ago
0
Level 1

Hi,

not exactly what you are looking for, but gives users a way to select ordering

http://www.seblod.com/products/919

175 Posts
webcastor
7 years ago
1
Level 1

Thank you Klas!

I was aware of the Search Ordering plugin, but I am interested in "seamless" sort by column implementation, such as exists in Joomla's Category List. What would you suggest as "typography" on column labels? Still on that subject, unless using hacks, there is nothing we can do to "enhance" column labels in lists displayed using Seb_Table template. Can we hope in receiving some column label options in future versions of Seblod?

In case of using Search Ordering, would that mean adding (like in the S.O. demo) something similar to: &search_ordering_city=1 (0 or 1 or 2) to the url linked to the column header?

Note: The "hack" I mentioned earlier consists in turning on JText in Seblod options, which allowed to create language overrides, and in turn resulted with COM_CCK_COLUMN_LABEL, which I was able to rewrite in language override file to contain

<a href="/...">Column Label</a>

This is not exactly an elegant solution to turn column labels into links.

572 Posts
_jrmo
7 years ago
0
Level 2

Hi webcastor,

This problem is addressed in SEBLOD 3.4, which is due out next week. I will do a tutorial on exactly how to use the new feature on the Blog when it is released. Stay tuned!

I'm going to mark this as solved now, but please feel free to bring it up again in the unlikely event that nothing materialises next week.

Cheers,

James

175 Posts
webcastor
7 years ago
1
Level 1

Thanks James!

Your tutorials are the inspiration and extremely valuable "commodity" for the Seblod community.

Best regards,
Aleksandar

572 Posts
_jrmo
7 years ago
0
Level 2

Thank you, that's kind of you to say. I am now officially with the Octopoos team (here in Paris), so you can look forward to some great material in the coming months.

Cheers,

James

Get a VIP membership