Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-01-09 22:55:18

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Page title tag reverse order attibute

At the moment we get Sitename | Page title but it would be great if we could set it Page title | Sitename

Because the latter is far better SEO

Perhaps something like…

<txp:page_title separator=" | " sitename="before"  />

Offline

#2 2008-01-09 23:55:13

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

Re: Page title tag reverse order attibute

Use <txp:site_name /> and <txp:title /> instead. Have a look here at the bottom code example.


Stuart

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

Offline

#3 2008-02-03 23:24:29

jonhenshaw
New Member
From: Nashville, TN
Registered: 2007-05-07
Posts: 3
Website

Re: Page title tag reverse order attibute

This is the solution I came up with: Reverse the Default Page Title Order in Textpattern I put it on the archive page template and it works quite well.

<txp:if_section name=""> <title><txp:sitename /></title> <txp:else /> <txp:if_individual_article> <title><txp:title /> - <txp:sitename /></title> </txp:if_individual_article> </txp:if_section>


Jon Henshaw
Internet Strategist
Sitening | Raven SEO Tools

Offline

#4 2008-02-03 23:38:37

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Page title tag reverse order attibute

jonhenshaw wrote:

<txp:if_section name=""> <title><txp:sitename /></title> <txp:else /> <txp:if_individual_article> <title><txp:title /> - <txp:sitename /></title> </txp:if_individual_article> </txp:if_section>

<txp:sitename /> is now <txp:site_name /> :)

Offline

#5 2008-02-03 23:45:12

jonhenshaw
New Member
From: Nashville, TN
Registered: 2007-05-07
Posts: 3
Website

Re: Page title tag reverse order attibute

Is that as of 4.0.6 or earlier?


Jon Henshaw
Internet Strategist
Sitening | Raven SEO Tools

Offline

#6 2008-02-03 23:51:05

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Page title tag reverse order attibute

I think it was earlier, but both tags worked until 4.0.6. The upgrade to 4.0.6 replaces the tags.

Offline

#7 2008-02-04 11:00:10

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

Re: Page title tag reverse order attibute

I’m not 100% sure but I think both tags still work as of 4.0.6 but since that release you will now get a deprecated tag notice.


Stuart

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

Offline

#8 2008-02-04 11:14:58

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Page title tag reverse order attibute

Correct. If you’re running in testing/debug mode, you will get a “deprecated tag” warning. TXP 4.0.6 replaces these tags during an upgrade, but doesn’t stop you from adding them again afterwards (which of course you should not do).

Offline

#9 2008-02-04 11:53:36

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

Re: Page title tag reverse order attibute

Am I right in thinking that at some point these deprecated tags will be completely removed so that they can’t be used in future?


Stuart

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

Offline

#10 2008-02-06 08:33:43

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Page title tag reverse order attibute

Yes.

Offline

#11 2014-07-30 16:56:35

alesh
Member
From: Miami, FL
Registered: 2005-04-13
Posts: 228
Website

Re: Page title tag reverse order attibute

6 years later, this still works!

However, doesn’t produce output on article list pages. I’ve also factored out(?) the title tag, so this:

<title><txp:if_section name=""> <txp:site_name /> <txp:else /> <txp:if_individual_article> <txp:title /> - <txp:site_name /> <txp:else /> <txp:section title="1" /> - <txp:site_name  /> </txp:if_individual_article> </txp:if_section></title>

Yes, I have tried turning it off and on.

Offline

Board footer

Powered by FluxBB