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,copied some nodes with the "Relate copied items to original" checkbox ticked but do not get any result with the following approach.
<xsl:for-each select="umbraco.library:GetRelatedNodesAsXml($currentPage/@id)">
<a href="{umbraco.library:NiceUrl(@id)}"><xsl:value-of select="@nodeName"/></a>
</xsl:for-each>
any ideas what i am doing wrong?Thanks for any help.
/Horst
Try verify data,
<textarea><xsl:copy-of select="umbraco.library:GetRelatedNodesAsXml($currentPage/@id)" /></textarea>
and if you still have problem post result here.
Via GetRelatedNodesAsXml you get an xml structure like this:
<relations> <relation typeId="1" typeName="Relate Document On Copy" createDate="05.08.2009 09:46:59" parentId="1050" childId="1053"> <comment></comment> <node id="1053" parentID="1044" level="2" writerID="0" sortOrder="3" createDate="2009-08-05T09:46:57" nodeName="Seite 2 (1)" path="-1,1044,1053" /> </relation></relations>
So with an xslt like this you get the related sites:
<ul> <xsl:for-each select="umbraco.library:GetRelatedNodesAsXml($currentPage/@id)/relations/relation/node"> <li><xsl:value-of select="@nodeName" /></li> </xsl:for-each></ul>
hth,Thomas
Hi Petr, hi Thomas,perfect, problem solved!
Thank you/Horst
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Howto? umbraco.library:GetRelatedNodesAsXml()
Hi,
copied some nodes with the "Relate copied items to original" checkbox ticked but do not get any result with the following approach.
<a href="{umbraco.library:NiceUrl(@id)}"><xsl:value-of select="@nodeName"/></a>
any ideas what i am doing wrong?
Thanks for any help.
/Horst
Try verify data,
and if you still have problem post result here.
Via GetRelatedNodesAsXml you get an xml structure like this:
So with an xslt like this you get the related sites:
hth,
Thomas
Hi Petr, hi Thomas,
perfect, problem solved!
Thank you
/Horst
is working on a reply...