Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-11-02 14:49:16

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

txp:category_list ordering

Ability to order txp:category_list. It’s presented alphabetically at the moment which isn’t always what’s needed. The option to have them ordered in the order entered would be useful.

Last edited by lee (2006-11-02 14:57:55)

Offline

#2 2006-11-02 17:45:48

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: txp:category_list ordering

Wish granted, see attribute categories.

Last edited by wet (2006-11-02 17:46:01)

Offline

#3 2006-11-02 17:50:19

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: txp:category_list ordering

Thanks, I somehow missed that when I looked earlier.

But the problem is a client would need to go and edit the tag after adding a new category. I was looking for a way that a client could simply add a new category when needed and it would show up at the bottom of a link list.

Offline

#4 2006-11-02 17:55:42

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: txp:category_list ordering

So you would end with:

  • a presorted list as the site starts
  • plus additional categories as the site grows?

In that case, the sort order would be somehow determined by the point in time at which the new category was added to the list, right?

Looks like you would have to spend a little more time defining the exact requirements for your sorting requirements, otherwise it would even be hard to implement any functionality as a plugin.

Offline

#5 2006-11-02 18:20:15

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: txp:category_list ordering

In that case, the sort order would be somehow determined by the point in time at which the new category was added to the list, right?

Exactly. If a plugin existed that is all I’d want, but other people might have other ideas.

Personally I think default sort order of the tag be more natural if it added new categories to the bottom of the list rather than sorting them in alphabetical order. Maybe I’ll try a hack with my poor PHP skills.

Offline

#6 2006-11-02 21:12:40

frederik
Member
From: Denmark
Registered: 2004-12-08
Posts: 17

Re: txp:category_list ordering

lee wrote:

Ability to order txp:category_list. It’s presented alphabetically at the moment which isn’t always what’s needed. The option to have them ordered in the order entered would be useful.

I encountered the same problem and solved it this way

/Frederik

Offline

Board footer

Powered by FluxBB