Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-01-09 18:10:41

Wolfgang
Member
From: Germany
Registered: 2006-07-18
Posts: 71
Website

Looking for something like Page Number

Hello

In my blog the domain.tld contains a list of the 5 last arcticle excerpts. Changing to the list will change the url to domain.tld/pg=2 and so on. I need a function which tells me, that I’m not on the first page

<txp:ifPageNumNot=“1”>foo</txp:ifPageNumNot=“1”>

Ho can I realize this?

Thanks for help
Best reagards
Wolfgang

Offline

#2 2010-01-09 18:40:00

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Looking for something like Page Number

soo_if_frontpage, setting the pg parameter to “1”, meets the case as you have described it.


Code is topiary

Offline

#3 2010-01-09 19:41:12

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: Looking for something like Page Number

Don’t forget about smd_if with it’s numerous functions :)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#4 2010-01-09 23:08:02

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

Re: Looking for something like Page Number

And there is wet_if_page as well. Lot’s of choices here methinks. ;)


Stuart

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

Offline

Board footer

Powered by FluxBB