Search

I am working on migrating my site to Symphony 2 at present, and I found it a little odd that my individual entry pages did not generate a proper title. Replace the contents of your page-title.xsl with the following:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:param name="entry" value="$entry" />
  <xsl:template name="page-title">
    <xsl:if test="$entry">
      <xsl:value-of select="/data//entry/title[@handle = $entry]"/>
      <xsl:text> / </xsl:text>
    </xsl:if>
    <xsl:value-of select="$page-title"/>
    <xsl:text> / </xsl:text>
    <xsl:value-of select="$website-name"/>
  </xsl:template>
</xsl:stylesheet>

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details