Keyword

Sorting extrafield select or multiselect by names

More
11 years 10 months ago - 11 years 10 months ago #108345 by Aleš
I find it very annoying that when you have select or multiselect extrafield, they get sorted by index (meaning in order list values were added) instead of names.

To solve this, I've used little hack.

In file /administrator/components/com_k2/models/extrafield.php I have changed code starting from line 323:
Log in  or Create an account to join the conversation.

More
11 years 9 months ago #108346 by Kelsey Brookes
Replied by Kelsey Brookes on topic Re: Sorting extrafield select or multiselect by names
Thanks for this post, exactly what I'm looking for!

Joomlaworks - is there anyway this can be added to the next release? Or at least the option to sort this way?

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #108347 by Kelsey Brookes
Replied by Kelsey Brookes on topic Re: Sorting extrafield select or multiselect by names
K2 Devs, I've just used this hack on yet another website.

This is a problem that I've seen asked numerous times across the forum and seems a bit of a fundamental problem. If you can't re-order the extra fields manually (which would also be good) then at least being able to order alphabetically is critical.

Please Log in or Create an account to join the conversation.

More
11 years 1 week ago #108348 by Kelsey Brookes
Replied by Kelsey Brookes on topic Re: Sorting extrafield select or multiselect by names
Hey Ales,

This no longer seems to work in 2.6.7, I don't suppose you've got an update for this hack?

K

Please Log in or Create an account to join the conversation.