Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-06-29 08:45:55

mlarino
Member
Registered: 2007-06-29
Posts: 367

next and previous tags placing

Hi
I have a problem with

<div class=“navigation”>
<div class=“alignleft”><txp:older>Previous Entries-></txp:older></div>
<div class=“alignright”><txp:newer><-Next Entries</txp:newer></div>
</div>

I cant seem to copy this and place it in a different location on the page.
I would like to have these links on the top and bottom of the page. I only have one article per page and would like to have a prev and next article links to navigate trough the articles.

www.mlarino.com/web2

can someone help?

Offline

#2 2007-07-01 14:57:47

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

Re: next and previous tags placing

You will need to use the <txp:article /> tag with the pgonly attribute before calling your first set of navigation tabs. The problem you have at the moment is that the tags at the top of the page don’t know what is to follow. The “pgonly” attribute forces TXP to fetch all the information it needs before rendering the page.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2007-07-01 15:07:32

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: next and previous tags placing

Thanks! I will try that and see how it goes.

Offline

#4 2007-07-01 15:10:16

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

Re: next and previous tags placing

Check the information here as well.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#5 2007-07-02 02:22:04

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: next and previous tags placing

It works! Thanks!
One more thing, is there a way to display the date of the next article like the “previous” link, and next link?
I am displaying only one article per page, and would like to have the previous article button be the actual date the previous post was published. Any idea?
Thanks!

Offline

#6 2007-07-02 10:53:40

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

Re: next and previous tags placing

That I am not sure about as I haven’t needed to use this method but have you tried using the <txp:posted /> tag as part of your “prev” or “next” link text? I wonder if that would pick up the correct dates as the whole tag is looking at the “prev” or “next” article??


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#7 2007-07-02 11:39:01

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: next and previous tags placing

No, It doesnt work, it gives me an error.
I just replaced the word PREVIOUS with <txp:posted />
I wonder how to do that….

Thanks anyway

Offline

#8 2007-07-02 17:13:16

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: next and previous tags placing

Hey! I Found an eroor with the pgonly thing I did before.
The main site appears to be fine, but when I clic the permalink of the article or on the comments link, what I get is the article repeated twice, one with the formating I made and one not stilized at all, check it out www.mlarino.com/web2
Whats going on? any ideas?

Offline

#9 2007-07-03 12:35:46

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

Re: next and previous tags placing

I’m not seeing a problem now so I presume you fixed it?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#10 2007-07-03 15:18:44

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: next and previous tags placing

Yes! just got it fixed! Thanks!
I am trying to figure out how to replace the word NEXT and Previous with images.

Offline

Board footer

Powered by FluxBB