Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-06-18 19:58:28
- supafunk
- Member
- Registered: 2006-03-05
- Posts: 15
Show/sort articles based on user choice
I might be not be fully understanding the Textpattern logic here, but is there a way to offer different ways of sorting your articles to the user.
For example, if I had a custom field for which if a value is entered it signifies that the article is recommended or something along those linees, could I offer a link to users so that they could view either all articles or just those which are recommended? Or even better a way to alternate the sorting of the articles (recommended ones first or last)?
Much appriciative of anyone who can help me out here…
Offline
#2 2006-06-18 21:14:39
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Show/sort articles based on user choice
You could try chs_if_urlvar. Here is an example.
Offline
#3 2006-06-19 18:16:02
- supafunk
- Member
- Registered: 2006-03-05
- Posts: 15
Re: Show/sort articles based on user choice
Wow thanks loads for that link it’s a big step towards doing what I want to do.
Although I don’t see a way to show articles on a page when the url doesn’t include any extra part to do with the chs_if_url plugin (specifically when the user gets to a page from a navigation menu automatically generated by a plugin such as wow_menu) without getting a list of articles in which some are shown twice.
I could see a possible solution in limiting the number of articles included in the article list to the number of articles supposed to be displayed but that seems like quite a hard and not very efficient way of doing things.
Do you have any suggestions, bar making all links on the site include a chs_if_url plugin extra bit on the end of the url?
Cheers, I hope this post is relatively comprehensible.
Offline
#4 2006-06-19 21:02:13
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Show/sort articles based on user choice
Well, I’m not sure if I understand you completely ;) but I suppose you want to do something like this. Also Alexandra wrote an article about the plugin, but I don’t know if you read German. Since I don’t use this plugin myself (yet) maybe you could ask the maker of intensify.org.
Offline
#5 2006-06-20 00:19:44
- supafunk
- Member
- Registered: 2006-03-05
- Posts: 15
Re: Show/sort articles based on user choice
:) I can’t read German unfortunately, but I seem to have solved by own problem – I just got the plugin’s syntax a little mixed up. Once again many thanks for pointing it out to me…
Offline
Pages: 1