Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-19 18:01:06

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Link to previous/next article alphabetically by title (not date)

The <txp:link_to_prev> and <txp:link_to_next> create links to the prev/next article by date posted.

But I would like to link to the prev/next article sorted alphabetically by title.
Is that possible and if, how would I go about it?

Any help would be very much appreciated.

Cheers Martin

Offline

#2 2008-04-19 18:20:26

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Link to previous/next article alphabetically by title (not date)

<txp:article sort="title asc" />

Offline

#3 2008-04-19 18:41:15

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: Link to previous/next article alphabetically by title (not date)

Hi Jukka,

I might suffer from a total brain lock here, but wouldn’t your suggestion just output a complete article listing sorted by title?

Just to avoid any confusion, I want to display

« (previous article) | (next article) »

links at the bottom sorted by title in an individual article context.

Last edited by masa (2008-04-19 18:42:11)

Offline

#4 2008-04-19 19:03:59

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Link to previous/next article alphabetically by title (not date)

Yep, you’re right, I missunderstood. Also, notiful thing is that sort doesn’t effect the individual order.

Then ya could try jra_links that allows sort in previous/next links.

Offline

#5 2008-04-19 19:09:26

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: Link to previous/next article alphabetically by title (not date)

Thanks very much Jukka, I’ll have a look at that plugin :-)

Offline

#6 2008-04-20 14:19:08

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: Link to previous/next article alphabetically by title (not date)

Yes, jra_links did the trick!
The only thing I miss is it doesn’t display the actual titles like the built in txp tag can, only a generic <previous | next> is possible.

Would be a nice feature to have :-)

Offline

#7 2008-04-20 16:58:19

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

Re: Link to previous/next article alphabetically by title (not date)

you could also try jk_neighbour (download)

Offline

#8 2008-04-20 21:14:07

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: Link to previous/next article alphabetically by title (not date)

Thanks Sven,

I’ll check it out.
Interesting, another plugin that isn’t listed on the resources site. I wonder what other goodies are somewhere out there.

Offline

Board footer

Powered by FluxBB