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 have an XSLT which I think I may slightly wrong.. it needs to display the current nodes data
<xsl:param name="currentPage"/> <xsl:template match="/"> <h1><xsl:value-of select="@nodeName"/></h1> <xsl:value-of select="umbraco.library:FormatDateTime(data [@alias='eventDate'], 'DDD, DD MMMM YYYY')"/> </xsl:template>
You missed the $currentPage at the select:
<xsl:param name="currentPage"/> <xsl:template match="/"> <h1><xsl:value-of select="$currentPage/@nodeName"/></h1> <xsl:value-of select="umbraco.library:FormatDateTime($currentPage/data [@alias='eventDate'], 'DDD, DD MMMM YYYY')"/> </xsl:template>
Thomas
<h1><xsl:value-of select="$currentPage/@nodeName"/></h1><xsl:value-of select="umbraco.library:FormatDateTime($currentPage/data [@alias = 'eventDate'], 'd MMMM, yyyy')"/>
You may only be missing $currentPage/ parameterm, but I'm also not sure about what you're asking of the FormateDateTime (too many commas?) - see here for a reference: http://en.wikibooks.org/wiki/Umbraco/Reference/umbraco.library/FormatDateTime
Dan
Arr, just opened my eyes - all looks good with the FDT, try putting in currentPage and you should be ok.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
How to display current page's data
I have an XSLT which I think I may slightly wrong.. it needs to display the current nodes data
<xsl:param name="currentPage"/> <xsl:template match="/"> <h1><xsl:value-of select="@nodeName"/></h1> <xsl:value-of select="umbraco.library:FormatDateTime(data [@alias='eventDate'], 'DDD, DD MMMM YYYY')"/> </xsl:template>
You missed the $currentPage at the select:
Thomas
You may only be missing $currentPage/ parameterm, but I'm also not sure about what you're asking of the FormateDateTime (too many commas?) - see here for a reference: http://en.wikibooks.org/wiki/Umbraco/Reference/umbraco.library/FormatDateTime
Dan
Arr, just opened my eyes - all looks good with the FDT, try putting in currentPage and you should be ok.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.