Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Sort Value basics
Can’t find this discussed anywhere.
What are the proper terms needed to operate the sort value, such as in the field “Sort Value” on the links page in the back end?
Thanks,
don
—
don schaefer
Offline
Offline
#3 2008-06-08 19:38:50
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Sort Value basics
If you leave the Sort value field empty, it will be filled with the Title field’s value. And if you don’t use the sort
attribute in txp:linklist it will use the Sort value field to sort the link list (default is sort="linksort asc"
).
Offline
Re: Sort Value basics
françois,
Thx. That gets me somewhere.
Els,
Thanks, also. However, in the links page in the back end, when I put “id” in the Sort Value for every link, they don’t come up in ID order. Instead it is 1,7,4,6,8 (there is no ID 2 or 3, I deleted them). Is that because they could be in different categories, or does “id” override things like that?
don
—
don schaefer
Offline
#5 2008-06-08 20:27:50
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: Sort Value basics
Putting “ID” (literally) in the sort field has no use. The easiest way to sort links on the linklist is to put numbers in it or leave it as is. If you use hundred-values for numbering (i.e. 100, 200, etc.) there are enough places to insert new links inbetween existing ones or change positions without renumbering every single link.
Last edited by uli (2008-06-08 20:29:24)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#6 2008-06-08 22:18:51
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Sort Value basics
Sorry if I wasn’t clear enough. The Sort value field is meant, like uli already explained, to be able to customize the sort order. If you want to sort by id, just use <txp:linklist sort="id asc" />
(or id desc
). See TextBook.
Offline
Re: Sort Value basics
Thanks, Els and Uli. I think I’m catching on. I’ll be playing around with your suggestions shortly.
You didn’t realize, I’m sure, that you were dealing with a real TextPattern dummie here. Love the platform.
best,
don
—
don schaefer
http://text.donschaefer.net/
Offline
#8 2008-06-09 08:40:55
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: Sort Value basics
We’re all dummying around somehow ;)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#9 2008-06-09 14:58:34
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Sort Value basics
allfive wrote:
a real TextPattern dummie
Enjoy it while it lasts, because it won’t be for long :)
Offline
Pages: 1