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 have the follow docType site structure
- Home Doc Type
- Section Doc Type
- News Section Doc Type
- News item Doc Type
Using the MultiNodePicker one News Item Doc Type could be associated to more Section Doc Type.
Now I want select all the News items of one specific Section name.
In the Home Doc Template I'm using a XSLT Macro with the follow expression:
<xsl:variable name="id" select="1123" /><xsl:for-each select="$currentPage/descendant::NewsItemDocType [section/MultiNodePicker/nodeId = $id]">
How do I set the id variable selecting the Section Doc with given nodeName 'sample'??
Thanks
Hi Andrea,
You could try the following XPath for the "id" variable?
<xsl:variable name="id" select="$currentPage/SectionDocType[@nodeName = 'sample']" />
Not sure what your Section's doc-type is called, so used "SectionDocType".
Cheers, Lee.
Hi Lee,
thanks for the help.
Andrea
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
uComponent MultiNodePicker
Hi,
I have the follow docType site structure
- Home Doc Type
- Section Doc Type
- News Section Doc Type
- News item Doc Type
Using the MultiNodePicker one News Item Doc Type could be associated to more Section Doc Type.
Now I want select all the News items of one specific Section name.
In the Home Doc Template I'm using a XSLT Macro with the follow expression:
<xsl:variable name="id" select="1123" />
<xsl:for-each select="$currentPage/descendant::NewsItemDocType [section/MultiNodePicker/nodeId = $id]">
How do I set the id variable selecting the Section Doc with given nodeName 'sample'??
Thanks
Hi Andrea,
You could try the following XPath for the "id" variable?
Not sure what your Section's doc-type is called, so used "SectionDocType".
Cheers, Lee.
Hi Lee,
thanks for the help.
Andrea
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.