Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#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
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
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
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
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
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
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
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
Pages: 1