Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-12-18 09:53:20

ibob
Member
From: Finland
Registered: 2010-06-14
Posts: 35

How to give custom order to categories

How can I give custom order to categories? Is there some plugin which gives similar possibilities as custom field in articles? Or maybe change category order from Categories -tab etc.?

Issue is that it is possible to change order if there is some logic behind like id, posted etc. but sometimes the order should come from the value of the category and i dont mean value of variable but how much site admin gives value to categories for example if categories were 1. Gold 2. Silver 3. Bronze. Now I can archieve this if I create these categories in certain order but then if I need to create Platinum afterwards to take position 1. or something like Mithril which should come between Gold and Silver it gets quite hard or even impossible?

Offline

#2 2010-12-18 10:24:30

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: How to give custom order to categories

One way to do this is to sort on the category name (1platinum) and display the category title (Platinum).

PS. by default it sorts alphabetically, so it sorts like this: 1platinum, 10gold, 2silver

Offline

#3 2010-12-18 10:59:19

ibob
Member
From: Finland
Registered: 2010-06-14
Posts: 35

Re: How to give custom order to categories

Thanks Ruud, that’s much better way than creating categories in certain order.

There’s only few “buts”: url construction since i have to use names to create them since names may include skandinavian letters like ä, ö and multiple words so i cant use titles. So www.somesite.com/section/2gold and www.somesite.com/section/3silver is kinda weird and then it’s still bit difficult to maintain for basic user.

Why this is so big concern for me is that I’ve been creating product/service catalogs with textpattern. Then menus may look like this:

Products (section / category)
  Jackets (category)
    Jacket Bill (article)
    Jacket Dean (article)
  Shirts (category)
    Shirt Bill(article)
    Shirt Dean(article)
  Pants (category)
    Pants Bill (article)
    Pants Dean (article)
  Shoes (category)
    Shoes Bill (article)
    Shoes Dean (article)

Section list is this way really clean:

Frontpage
Products
FAQ
About us

And category hierarchy is easy to understand. It would go:

Products
  Jackets
  Shirts
  Pants
  Shoes

Urls: www.somesite.com/products/jackets/jacket-dean

Everything is just perfect and easy to maintain but the custom category order.

Last edited by ibob (2010-12-18 13:09:52)

Offline

#4 2010-12-18 12:31:12

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: How to give custom order to categories

Submit a feature request to the developers for the next TXP version: adding an extra column to the txp_category table to indicate sorting order (alphabetically), similar to how it’s done for links.

Offline

#5 2010-12-18 13:03:42

ibob
Member
From: Finland
Registered: 2010-06-14
Posts: 35

Re: How to give custom order to categories

It’s requested now at http://forum.textpattern.com/238623
Feel free to reply if you have anything to add.

Offline

#6 2010-12-18 13:58:13

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: How to give custom order to categories

Have a look here.

Offline

#7 2010-12-18 17:23:58

ibob
Member
From: Finland
Registered: 2010-06-14
Posts: 35

Re: How to give custom order to categories

Thanks Els for bringing that up. I’ve sent request for plugin. It seems it would do just the thing that I need!

Last edited by ibob (2010-12-20 09:31:04)

Offline

#8 2010-12-19 05:41:36

radneck
Plugin Author
Registered: 2005-07-03
Posts: 109

Re: How to give custom order to categories

Beta version of this plugin sent. Final version will be out in a couple of weeks :)

Offline

#9 2011-02-11 15:41:26

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: How to give custom order to categories

cain-mi, is there any chance to have this publicily released? Or can I mail to you to have the beta version?

Offline

#10 2011-02-14 00:37:11

radneck
Plugin Author
Registered: 2005-07-03
Posts: 109

Re: How to give custom order to categories

Zanza wrote:

Is there any chance to have this publicily released? Or can I mail to you to have the beta version?

Running a bit late getting the new version out sorry, if you email me I can send you the beta though.

Last edited by radneck (2015-11-04 07:41:15)

Offline

#11 2013-10-10 06:20:34

radneck
Plugin Author
Registered: 2005-07-03
Posts: 109

Re: How to give custom order to categories

See here.

Offline

Board footer

Powered by FluxBB