Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-08-03 00:42:27
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Sort Value for Sections and Categories
When you’re in CONTENT/LINKS and add a link, there’s a field called “Sort Value” …
by default, the “Sort Value” is populated with the link’s “Title” but you can modify it – very useful if you want to customise or tweak the order of your links
it’d be great if Sections and Categories also had this field – that way, you could also customise output of Section or Category lists
I’ve suggested this to Team Textpattern, but no harm in adding it to this forum
Offline
#2 2006-08-03 01:54:15
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Sort Value for Sections and Categories
Please note: Team Textpattern’s contact form is for soliciting it’s commercial services. Please do not send general bug reports or feature requests for Textpattern there unless you’re wanting them to be custom developed for you, for a fee. :)
Offline
#3 2006-08-03 01:59:04
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: Sort Value for Sections and Categories
yes Mary, that was the situation – I should have stated that fact
but glad you posted, to ensure sustainable procedures!
Offline
Re: Sort Value for Sections and Categories
I’m digging out this old thread because I would find it useful too to have a way to sort sections (and maybe categories), from the admin side without changing the code (and without changing the sections name of course…). Honestly, do you often use an alphabetical order for to sort your sections?
Offline
#5 2016-10-03 13:32:42
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Re: Sort Value for Sections and Categories
Offline
Re: Sort Value for Sections and Categories
GugUser wrote #301922:
Thanks, that’s not ideal but I’ll try it with the patch for 4.6.
However, wouldn’t it be just more logical to add this feature into the core? In my mind it is as justified as it is for links, no?
Offline
Re: Sort Value for Sections and Categories
Offline
Re: Sort Value for Sections and Categories
NicolasGraph wrote #301921:
a way to sort sections (and maybe categories), from the admin side without changing the code (and without changing the sections name of course…).
From the txp:section_list tag:
sections=“section name(s)”
Comma-separated list of section names to include in the list, displayed in specified order (unless overridden by the sort attribute).
Default: unset (all sections).
The linksort
is a hack to get round the fact there’s no public-side way to manage the link order beside using sort
. It’s, frankly, horrible. Imagine if you had that ‘feature’ on 200 categories and had to click into each one to figure out or change what order they’d display!
I think a far more intuitive system would (uhh, somehow) be drag n’ drop ordering. But quite how we would realise that in the admin UI and integrate it with the tags in a consistent manner, I’m not sure.
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
Online
Re: Sort Value for Sections and Categories
Bloke wrote #301926:
From the txp:section_list tag:
Thanks Stef; of course, I know <txp:section_list sections="…" />
but I was thinking about theming and a way for end users to create and sort their own sections.
For now I can set a custom theme pref with rah_flat to fill the sections list but it is not really intuitive.
The
linksort
is a hack to get round the fact there’s no public-side way to manage the link order beside usingsort
. It’s, frankly, horrible. Imagine if you had that ‘feature’ on 200 categories and had to click into each one to figure out or change what order they’d display!
You are right, and that’s why I was mainly thinking about sections. I often use the alphabetical sort order for categories, but never for sections. Do you often have 200 sections?
I think a far more intuitive system would (uhh, somehow) be drag n’ drop ordering. But quite how we would realise that in the admin UI and integrate it with the tags in a consistent manner, I’m not sure.
It would be nice… Is it realistic/planned for 4.7?
Last edited by NicolasGraph (2016-10-03 14:59:39)
Offline
#10 2016-10-03 15:21:38
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Re: Sort Value for Sections and Categories
The mentioned plugin has this drag and drop ordering.
Offline
Re: Sort Value for Sections and Categories
GugUser wrote #301928:
The mentioned plugin has this drag and drop ordering.
Right. Can you make the it work properly in Txp 4.6 (categories)?
Offline
#12 2016-10-03 15:36:56
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Re: Sort Value for Sections and Categories
I use it with the patch in a 4.6 beta 2 installation and it work’s with categories.
Last edited by GugUser (2016-10-03 15:37:23)
Offline