Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Parameter "sortby" for txp:related_articles
A list of related articles is currently ordered by posting date (descending), as per line 371 of taghandlers.php.
It would be nice if txp:related_articles accepted a “sortby” parameter (as far as I can tell, it currently doesn’t) which allows to order, for instance, by article title, post date, or randomly.
I find the latter very useful in case there are way too many related articles to display all of them next to an article.
With a limit of, say, 10 related articles imposed, users always get the same 10 out of what may be many more related articles if related articles are sorted by a specific field.
Random ordering of the list allows to display different related articles each time an article from a specific category is viewed, and offers visitors access to much more information from a site.
As a feature, this is not crucial, but would be nice to have.
Offline
Re: Parameter "sortby" for txp:related_articles
I’ll second that having already read your original post. :)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#3 2006-07-04 17:36:25
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Parameter "sortby" for txp:related_articles
Added. r1410.
Offline
Re: Parameter "sortby" for txp:related_articles
Thank you!
Offline