Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2019-08-14 13:07:45

Kjeld
Member
From: Tokyo, Japan
Registered: 2005-02-05
Posts: 446
Website

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 categories you must override the sort attribute with sort="", otherwise it will default to name asc. That’s been fixed in current dev by detecting if you’re using the categories attribute and only setting the sort defaults 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

#14 2019-08-14 14:11:59

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

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

#15 2019-08-14 14:36:55

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,269
Website GitHub

Re: Order of txp:category_list not as expected…

etc wrote #319053:

I don’t think we have changed sort attribute behaviour in 4.7, it was always defaulting to name ASC if 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

#16 2019-08-14 14:49:04

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

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

#17 2019-08-14 14:55:28

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,269
Website GitHub

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 dev everything 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

Board footer

Powered by FluxBB