Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-08-19 20:44:31

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

article listing options

Currently I have a list of section articles in my sidebar, in descending order.

<txp:article_custom form=“subnav” limit=“99” section=“articles” sort=“Posted desc” />

However, is there a way of a user sorting them by Author, Date Published, Title with some sort of link. Example: “Sort by: Title | Date | Author”


Living the Location-Independent Life: www.NuNomad.com

Offline

#2 2011-08-19 22:20:54

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 596
Website

Re: article listing options

Really quick way to cheat: Use a jquery tab plugin. Make 3 divs, each containing a different article list — one sorted by title, another by date, and another by author.

Last edited by maruchan (2011-08-19 22:21:05)

Offline

#3 2011-08-19 23:57:54

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

Re: article listing options

You know, that just might work. Thank you! I’ll try it out and let you know.
One other question though: how do I set a list for authors? Same way as articles?

Last edited by laptophobo (2011-08-20 00:32:45)


Living the Location-Independent Life: www.NuNomad.com

Offline

#4 2011-08-20 05:56:58

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,258
Website GitHub Mastodon Twitter

Re: article listing options

laptophobo wrote:

You know, that just might work. Thank you! I’ll try it out and let you know.
One other question though: how do I set a list for authors? Same way as articles?

Untested

<txp:article_custom break="li" wraptag="ul" limit="9999">
<txp:author />
</txp:article_custom>

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB