Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I would like to make some different types of titles depending on where we are on the site.
I have made a macro with the name pagetitle, at it gets called.
It looks like this:
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:template match="/">
</xsl:template>
</xsl:stylesheet>
But If I insert something like this: <xsl:value-of select="@nodeType"/>, it dont get printed out. What do i do wrong?
Use $currentPage/@nodeType.
Hi Kristian,
You need to include the currentPage variable, like this
<xsl:value-of select="$currentPage/@nodeName"/>
Rich
Where's your currentPage?:
<xsl:output method="xml" omit-xml-declaration="yes"/><xsl:param name="currentPage"/><xsl:template match="/"><xsl:value-of select="$currentPage/@nodeType"/></xsl:template></xsl:stylesheet>
Regards,Magnus
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Page Title
I would like to make some different types of titles depending on where we are on the site.
I have made a macro with the name pagetitle, at it gets called.
It looks like this:
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:template match="/">
</xsl:template>
</xsl:stylesheet>
But If I insert something like this: <xsl:value-of select="@nodeType"/>, it dont get printed out. What do i do wrong?
Use $currentPage/@nodeType.
Hi Kristian,
You need to include the currentPage variable, like this
<xsl:value-of select="$currentPage/@nodeName"/>
Rich
Where's your currentPage?:
Regards,
Magnus
is working on a reply...