Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-25 16:59:11

kellner
Member
Registered: 2004-02-27
Posts: 21
Website

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

#2 2005-11-26 03:33:18

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

#4 2006-07-05 06:25:26

kellner
Member
Registered: 2004-02-27
Posts: 21
Website

Re: Parameter "sortby" for txp:related_articles

Thank you!

Offline

Board footer

Powered by FluxBB