Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-03-11 11:52:48
- wspence
- Member
- Registered: 2006-09-03
- Posts: 84
Question on using a page like navigation.
Ok so I’m trying to put together a feature similar to digg.com where you can flip through pages using page numbers and back and forward to go through stories. I’m using this for my archive section that is loaded. I have everything designed and as far as CSS and buttons, etc.
So with all that being said is there a textpattern tag that i can use to have 25 articles on the page then the next page and have the path read /archives/?=page2 or something like that?
Thanks in advance!
Offline
#2 2007-03-11 12:15:59
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Offline
#3 2007-03-11 21:55:58
- wspence
- Member
- Registered: 2006-09-03
- Posts: 84
Re: Question on using a page like navigation.
So do I have to set up a page that is named older and newer? I’m getting a 404 error.
Offline
#4 2007-03-11 22:01:47
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Question on using a page like navigation.
No, just use the txp:older and txp:newer tags as described in TextBook (see links in my post above) on your archives page template, after the article tag. The output of those tags will automatically link to /archives/?pg=2 etc.
Offline
#5 2007-03-12 04:44:09
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Question on using a page like navigation.
Offline