Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-16 20:08:48

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Link to Next works only in section

Link to next should link to next article by date of publishing, right? I am finding that it will only do this if the next article is in the same section. It will ignore articles in other sections.

I am using txp:article /> and then the link to next after that. No custom article in sight. 4.03


BB6 Band My band
Gud One My blog

Offline

#2 2006-02-16 20:27:35

Elenita
Member
From: Falls Church, VA
Registered: 2004-05-16
Posts: 407
Website

Re: Link to Next works only in section

I’m reasonably (but not entirely) sure that <code><txp:link_to_next /></code> and <code><txp:link_to_prev /></code> are context-sensitive (incidentally, <code><txp:article /></code> is for certain). As such, they will only display articles in the appropriate section or category.

Confirmation by someone more knowledgeable would be nice, though.

Last edited by Elenita (2006-02-16 21:01:25)

Offline

#3 2006-02-16 20:50:48

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Link to Next works only in section

Thanks, I suspect you’re right, Elenita. I now seem to remember using it like that a long time ago, but haven’t had a need for it since. Unless someone can tell me otherwise, I will now have to find a way to link to the actual next article not the next in section.


BB6 Band My band
Gud One My blog

Offline

#4 2006-02-17 01:31:10

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

Re: Link to Next works only in section

That is correct, the next article within that section. You’ll need a plugin.

Last edited by Mary (2006-02-17 01:31:18)

Offline

#5 2006-02-17 02:58:47

Elenita
Member
From: Falls Church, VA
Registered: 2004-05-16
Posts: 407
Website

Re: Link to Next works only in section

Thanks, Mary.

TextBook documentation has been updated to clarify that these two tags are context-sensitive.

Offline

#6 2006-02-17 19:29:52

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Link to Next works only in section

Thanks for confirming, Mary. I’ve hand coded a link from one section to the other section which will do me for the time being.


BB6 Band My band
Gud One My blog

Offline

Board footer

Powered by FluxBB