Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#4 2016-10-03 13:26:01

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

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?


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

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

#6 2016-10-03 13:41:36

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: Sort Value for Sections and Categories

GugUser wrote #301922:

esq_sectionsort

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?


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#7 2016-10-03 14:23:53

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: Sort Value for Sections and Categories

GugUser wrote #301922:

esq_sectionsort

Do you use it? I can’t make it work, even with the patch…


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#8 2016-10-03 14:26:49

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

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

Offline

#9 2016-10-03 14:47:05

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

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 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!

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)


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

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

#11 2016-10-03 15:30:27

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

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)?


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

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

Board footer

Powered by FluxBB