Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Show Page Number
How do I show the page number, so for example if I was at http://domain.com/articles/?pg=2 and I wanted to have a title on the page like <h2>Page 2</h2> How would I generate that? I can’t find any tag in the Textbook, so I take it I would need to use some PHP? Thanks
~ Cameron
Offline
Re: Show Page Number
Offline
Re: Show Page Number
maniqui wrote:
Is their an if statement to work with this, so you can check if their is page number before showing it? so for example if your on page 1 then showing nothing but if you are then show the page number. otherwise you would end up with empty <h2></h2> tags.
~ Cameron
Offline
Offline
Re: Show Page Number
Not sure where page_url comes into this. You want something like adi_gps to detect if there’s a pg
GET variable and if present puts the value in a txp:variable which you can then use on your page.
TXP Builders – finely-crafted code, design and txp
Offline
Offline
Pages: 1