Plone SEO: Page Title Tag Customization
Plone generates the <TITLE> tag from the document title and appends the site title to it separated by an em dash, for example: Politics — My Mutterings.
The Plone SEO add-on provides the capability of customizing the HTML title tag.
Where the user decides to override the page title, Plone SEO replaces the title tag in its entirety. This results in a page title without Plone site title, for example: My Custom Title.
The only alternative would be to add the site title explicitly, which would then no longer be configurable via the Site Setup.
This is just a quick and dirty fix implemented via a Diazo rule:
Those who use a Diazo themed Plone site can add the following rule directive to the rules.xml file:
This will append the Plone site title with a url-encoded em dash to any page title tag which it is missing from.
<replace content="/html/head/title/text()" if-content="//title[not(contains(., //*[@id='portal-logo']/@title))]"> <!-- append " — <site title>" --> <xsl:value-of select="concat(., ' — ', //*[@id='portal-logo']/@title)"/> </replace>