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
Hi,
I've just installed and starting using Umbraco 4.6.1 and am confused why
<xsl:variable name="longTitle" select="umbraco.library:Item($currentPage/@id,'title')"/>
<xsl:value-of select="$longTitle"/>
returns a valid string containing my title field but
<xsl:value-of select="$currentPage/data [@alias = 'title']"/>
returns a blank string. I'm sure this used to work with 4.0.2.1.
Any help would be appreciated.
Thanks
Andy
Hi Andy
The XML schema in v4.6.1 is different from the one in 4.0.2.1. This means that you don't have to write this:
but you can just write this:
<xsl:value-of select="$currentPage/title"/>
/Kim A
Thanks for that Kim!
All working now.
Good to hear. Actually the XML schema changed in v.4.5 (formerly known as 4.1), but I'm glad it's working now :)
By the way Andy. If you prefer the legacy XML schema, you can find the following line in the /config/umbracoSettings.config-file:
<UseLegacyXmlSchema>false</UseLegacyXmlSchema>
and change it to this:
<UseLegacyXmlSchema>true</UseLegacyXmlSchema>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
XSLT confusion
Hi,
I've just installed and starting using Umbraco 4.6.1 and am confused why
<xsl:variable name="longTitle" select="umbraco.library:Item($currentPage/@id,'title')"/>
<xsl:value-of select="$longTitle"/>
returns a valid string containing my title field but
<xsl:value-of select="$currentPage/data [@alias = 'title']"/>
returns a blank string. I'm sure this used to work with 4.0.2.1.
Any help would be appreciated.
Thanks
Andy
Hi Andy
The XML schema in v4.6.1 is different from the one in 4.0.2.1. This means that you don't have to write this:
but you can just write this:
/Kim A
Thanks for that Kim!
All working now.
Good to hear. Actually the XML schema changed in v.4.5 (formerly known as 4.1), but I'm glad it's working now :)
/Kim A
By the way Andy. If you prefer the legacy XML schema, you can find the following line in the /config/umbracoSettings.config-file:
and change it to this:
/Kim A
is working on a reply...