Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Order of txp:category_list not as expected…
Bloke wrote #319050:
I’m really interested in figuring out why this doesn’t work for you. Have sent you an email.
As far as I can make out reading the code, in 4.7.3 there is a bug that if you specify a list of
categoriesyou must override the sort attribute withsort="", otherwise it will default toname asc. That’s been fixed in current dev by detecting if you’re using thecategoriesattribute and only setting thesortdefaults if not.So I’m intrigued why it didn’t work with Michael’s suggestion at the top of this thread.
Oh, I misunderstood Michael’s suggestion and didn’t try sort="". I thought he was suggesting to close the tag…
• Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
• MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
• JapaneseStreets.com – Japanese street fashion (mostly txp)
Offline
Re: Order of txp:category_list not as expected…
That’s intriguing me:
After I upgraded to txp 4.7.3, the order of the categories of txp:category_list is no longer as expected…
I don’t think we have changed sort attribute behaviour in 4.7, it was always defaulting to name ASC if not set explicitly.
Offline
Re: Order of txp:category_list not as expected…
etc wrote #319053:
I don’t think we have changed
sortattribute behaviour in 4.7, it was always defaulting toname ASCif not set explicitly.
Hmmmm…. That was just prior to 4.7.2 being released I think. But maybe I’m missing something.
Note to self/devs/community: Let’s compile a tag Unit Test library as a matter of urgency so we can help catch tag regressions.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: Order of txp:category_list not as expected…
Oops, right, one bug’s fix is another bug’s birth. Hopefully in dev everything is fine.
Offline
Re: Order of txp:category_list not as expected…
etc wrote #319055:
Oops, right, one bug’s fix is another bug’s birth. Hopefully in
deveverything is fine.
Yeah, no worries. Seems to be working fine in my tests.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline