Copied to clipboard

Flag this post as spam?

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


  • Ilie Ghiciuc 2 posts 22 karma points
    May 11, 2011 @ 09:54
    Ilie Ghiciuc
    0

    Start node XSLT in multi node tree picker

    Hello all,

    i am trying to use the multi node tree picker (which seems much more capable compared to the ultimate picker) to select only items which have a parent of type "Regions". Basically i want to only allow the "en" regions for children of  "en"  and only regions from "nl" for pages which are children of "nl" in the following structure:

    -- en

    ---- Regions

    -------- Region 1

    -------- Region 2

    nl

     

    ---- Regions

    -------- Region 1

    -------- Region 2

     

    I am trying the following settings for start node (configured as Relative):

    $currentPage/ancestor-or-self::node/data[@nodeTypeAlias='Regions' and @level=2][1]

    This should give me the sibling "Regions" of my content type within the same language but it just gives an ASP.NET server error when trying to load the editor.

    Any help is very much appreciated.

    Thank you,

    Ilie 

     

     

  • Ilie Ghiciuc 2 posts 22 karma points
    May 11, 2011 @ 10:38
    Ilie Ghiciuc
    0

    I figured out that when using "From current" as start node you should not include "@currentPage/"

    My expression now looks like this: ancestor-or-self::node[@level = 2] which should give me the node named "en".

    Now the control no longers gives the ugly yellow ASP.NET error but it is saying it cannot find any starting node.

     

Please Sign in or register to post replies

Write your reply to:

Draft