Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-11-06 13:49:40

douglgm
Member
From: Bristol
Registered: 2006-08-23
Posts: 182
Website

Maintaining Category Context

Take this as an example:

A user is viewing a list of articles in a category and can navigate older and newer articles in that category using the older/newer links.

If he selects an article to read, the next and previous articles are not limited to the category but to the section and do not relate to the previous list category.

(if the article is the only one in the section, then there are no next/previous articles).

Maybe it’s just me – but isn’t this a little annoying? Is there any way round this?

Last edited by douglgm (2006-11-06 13:50:16)

Offline

#2 2006-11-06 17:21:39

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Maintaining Category Context

Plugin. :)

Offline

#3 2006-11-06 20:28:26

douglgm
Member
From: Bristol
Registered: 2006-08-23
Posts: 182
Website

Re: Maintaining Category Context

Thanks Mary!

(Do you get paid for almost single handedly manning the txp support centre!)

It was this comment that confused me on the “Txp:link to next” Textbook page.

“Note: This tag is context-sensitive, meaning it will only grab content from the section or category being viewed.”

Offline

#4 2006-11-06 21:22:13

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Maintaining Category Context

Nope not paid. :)

I’ll just go correct that page.

Offline

#5 2006-11-06 21:22:35

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,599
Website

Re: Maintaining Category Context

low_nav: The link to the plug-in is long dead and it didn’t work with txp RC3, which is 5 versions ago by now. It’s a pity, because I had to jump through hoops to get this apparently simple notion working on a client site.

My convoluted workaround using cookies to track the currently chosen category is described in this thread on link_to_next & prev within a category. Reptilerobots had a slightly simpler setup and got it working slightly differently too -> same thread.

I’d love to know if there’s a simpler way.


TXP Builders – finely-crafted code, design and txp

Offline

#6 2006-11-06 21:34:19

douglgm
Member
From: Bristol
Registered: 2006-08-23
Posts: 182
Website

Re: Maintaining Category Context

Jakob, you’re right – the link just takes me to a site trying to see me Justin Timberlake tickets! Eek! Seems that an elegant solution to this problem is going to be hard to find!

Mary – instead of altering the Textbook page – couldn’t you just alter Txp to provide that functionality! ;-)

Offline

Board footer

Powered by FluxBB