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 guys, I used to old schema and I'm switching to new one. I have trouble with this line :
<xsl:for-each select="umbraco.library:GetXmlNodeById($parentNode)/ancestor-or-self::node[@level=1]//node [@nodeTypeAlias=$documentTypeAlias]">
Can you help me convert that to new schema?
Thank you
It's the variable nodeTypeAlias that seems not to work :
<xsl:for-each select="umbraco.library:GetXmlNodeById($parentNode)/ancestor-or-self::*[@level=1]//($documentTypeAlias)">
Hi profiterole
That's probably because the @NodeTypeAlias is no more :-)
This wiki entry about shows some good examples on how to match the nodetype with the new schema now: http://our.umbraco.org/wiki/reference/xslt/45-xml-schema/no-more-@nodetypealias
Hope this helps.
/Jan
Thank Jan... but I figured it myself!! Not to complicated after all!
Glad you figured it out :-)
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
old to new schema
Hi guys, I used to old schema and I'm switching to new one. I have trouble with this line :
<xsl:for-each select="umbraco.library:GetXmlNodeById($parentNode)/ancestor-or-self::node[@level=1]//node [@nodeTypeAlias=$documentTypeAlias]">
Can you help me convert that to new schema?
Thank you
It's the variable nodeTypeAlias that seems not to work :
Hi profiterole
That's probably because the @NodeTypeAlias is no more :-)
This wiki entry about shows some good examples on how to match the nodetype with the new schema now: http://our.umbraco.org/wiki/reference/xslt/45-xml-schema/no-more-@nodetypealias
Hope this helps.
/Jan
Thank Jan... but I figured it myself!! Not to complicated after all!
Glad you figured it out :-)
/Jan
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.