Custom Group Names Order, possible?

Post Reply
cloudgp
Posts: 92
Joined: Sat Apr 20, 2013 9:51 am

Custom Group Names Order, possible?

Post by cloudgp »

Hi, Got a doubt about this. My custom group names are ordered in the same way that my categories, but since names are different, they are not ordered correctly. Is it possible to order alphabetically custom group names? If so, how should I do it?
Thank you.
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Custom Group Names Order, possible?

Post by admin »

At present time the only way i see is to sort it template itself ($categories_abc has all the information) but i'll think how to solve this in more template-wise way )
Don't forget to run script update
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Custom Group Names Order, possible?

Post by admin »

O, it was added as

<category num=1-10 order=category_custom_name>
.........
</category>
Don't forget to run script update
cloudgp
Posts: 92
Joined: Sat Apr 20, 2013 9:51 am

Re: Custom Group Names Order, possible?

Post by cloudgp »

Hi, I added the new code, it orders custom group names correctly but this is also adding the group names, not just the custom group names.
So I have this:
<category order=category_custom_name num=1-100 first_letter=b>
which is adding me the name groups with b as well, and custom group names of those may not be starting with b... so it gets a bit messy.
Can you please check this out?
Thx.
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Custom Group Names Order, possible?

Post by admin »

ok
to make sure we won't screw up existing sites it was added as new tag

<category order=category_custom_name num=1-100 custom_name_first_letter=b>
Don't forget to run script update
cloudgp
Posts: 92
Joined: Sat Apr 20, 2013 9:51 am

Re: Custom Group Names Order, possible?

Post by cloudgp »

Working fine, thank you ;)
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Custom Group Names Order, possible?

Post by admin »

NP)
Don't forget to run script update
Post Reply