Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andrea 24 posts 44 karma points
    Dec 23, 2010 @ 16:28
    Andrea
    0

    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

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    Jan 01, 2011 @ 09:04
    Lee Kelleher
    0

    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.

  • Andrea 24 posts 44 karma points
    Jan 05, 2011 @ 15:30
    Andrea
    0

    Hi Lee,

    thanks for the help.

     

    Andrea

  • 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.

Please Sign in or register to post replies