Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-02-08 23:44:31

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

[Solved] Use URL rewrite parameters for page titles?

Evening guys :¬)

I’m using ob1_pagination, and it adds a URL rewrite condition for each page, i.e.

http://www.rossharveyweddings.com/weddings?pg=2

Any TXP wizards know how I can grab that ‘2’ and use it in a template?

Google SEO bots don’t like pages with the same title, and this plugin doesn’t help that. Can you do something like this?

1. If section is weddings
2. Check if 'pg' attribute exists
3. If so, grab it and dump in <title> tag

I’m lost with step 2 – fingers crossed it can be done!

Last edited by rossharvey (2012-02-09 00:29:17)

Offline

#2 2012-02-08 23:48:42

joebaich
Member
From: DC Metro Area and elsewhere
Registered: 2006-09-24
Posts: 507
Website

Re: [Solved] Use URL rewrite parameters for page titles?

Does this help?

Offline

#3 2012-02-08 23:50:37

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: [Solved] Use URL rewrite parameters for page titles?

joebaich wrote:

Does this help?

Works a treat – thank you!

Last edited by rossharvey (2012-02-09 00:29:05)

Offline

Board footer

Powered by FluxBB