Return to Snippet

Revision: 3502
at February 3, 2008 20:46 by jonhenshaw


Updated Code
<txp:if_section name="">
<title><txp:site_name /></title>
<txp:else />
<txp:if_individual_article>
<title><txp:title /> - <txp:site_name /></title>
</txp:if_individual_article>
</txp:if_section>

Revision: 3501
at August 3, 2007 11:30 by jonhenshaw


Initial Code
<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>

Initial URL

                                

Initial Description
Textpattern's default page title markup -- txp:page_title -- always places the site name in front of the individual page name. This is irritating, because I prefer to have the interior content title come before the site title itself -- it just makes more sense that way and it's a lot more search engine friendly.

Use this code to replace txp:page_title on the page template to get the desired effect.

Initial Title
Reverse the Default Page Title Order in Textpattern

Initial Tags
page

Initial Language
Textpattern