- Posts: 175
COMMUNITY FORUM
[SOLVED] Category drop-down sorted reverse
- Oceanwatcher
-
Topic Author
- Offline
- Elite Member
Less
More
14 years 10 months ago #85611
by Oceanwatcher
[SOLVED] Category drop-down sorted reverse was created by Oceanwatcher
I am using Joomla 1.5.18, k2 v. 2.3
Check the work in progress on this page: www.golfdesign.info/usp/
There is a category chooser in the sidebar (using mod_k2_tools), but in the settings of this module the options is set up in a strange way so that the drop-down list has no options for display order.Has anyone been able to get the category drop-down sorted in reverse order?I.e. I would like to have No 26, No 25 etc.
Check the work in progress on this page: www.golfdesign.info/usp/
There is a category chooser in the sidebar (using mod_k2_tools), but in the settings of this module the options is set up in a strange way so that the drop-down list has no options for display order.Has anyone been able to get the category drop-down sorted in reverse order?I.e. I would like to have No 26, No 25 etc.
Please Log in or Create an account to join the conversation.
- Oceanwatcher
-
Topic Author
- Offline
- Elite Member
Less
More
- Posts: 175
14 years 10 months ago #85612
by Oceanwatcher
Replied by Oceanwatcher on topic [SOLVED] Category drop-down sorted reverse
Wow - that is unusual for this community! No answers?
Please Log in or Create an account to join the conversation.
- Simon Wells
-
- Offline
- Platinum Member
Less
More
- Posts: 955
14 years 10 months ago #85613
by Simon Wells
Replied by Simon Wells on topic [SOLVED] Category drop-down sorted reverse
Hi Svein, there is no option to sort the category.
Either a feature request would need to be submitted or make a mod to the module.
If you choose the second option, you could copy/modify the code used to sort the Category List for use with the Category Select Box.
Sorry, its not the answer your looking for at the moment.
Simon
K2 Support
Either a feature request would need to be submitted or make a mod to the module.
If you choose the second option, you could copy/modify the code used to sort the Category List for use with the Category Select Box.
Sorry, its not the answer your looking for at the moment.
Simon
K2 Support
Please Log in or Create an account to join the conversation.
- Oceanwatcher
-
Topic Author
- Offline
- Elite Member
Less
More
- Posts: 175
14 years 10 months ago #85614
by Oceanwatcher
Replied by Oceanwatcher on topic [SOLVED] Category drop-down sorted reverse
Well, it is actually a good idea, so I'll try to take a look. But as I am not a programmer, I might create a mess of it :-D
Thanks anyway.
Simon Wells (K2 Support) said:
Sorry, its not the answer your looking for at the moment.
Simon
K2 Support
Thanks anyway.
Simon Wells (K2 Support) said:
Sorry, its not the answer your looking for at the moment.
Simon
K2 Support
Please Log in or Create an account to join the conversation.
- Oceanwatcher
-
Topic Author
- Offline
- Elite Member
Less
More
- Posts: 175
14 years 9 months ago #85615
by Oceanwatcher
Replied by Oceanwatcher on topic [SOLVED] Category drop-down sorted reverse
And here is the solution. Warning: This is a hack of core files so it will be overwritten in an upgrade!
As it is a bit difficult to display code here, I wrote it up on mu blog instead. Take a look here:
www.wisnaes.com/2010/07/25/category-drop-down-in-mod_k2_tools-sorted-reverse/
As it is a bit difficult to display code here, I wrote it up on mu blog instead. Take a look here:
www.wisnaes.com/2010/07/25/category-drop-down-in-mod_k2_tools-sorted-reverse/
Please Log in or Create an account to join the conversation.
- Simon Wells
-
- Offline
- Platinum Member
Less
More
- Posts: 955
14 years 9 months ago #85616
by Simon Wells
Replied by Simon Wells on topic [SOLVED] Category drop-down sorted reverse
Svien,
Nice work again, I will flag this as a feature request.
Simon
K2 Support
Nice work again, I will flag this as a feature request.
Simon
K2 Support
Please Log in or Create an account to join the conversation.