Copied to clipboard

Flag this post as spam?

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


  • kerstin 11 posts 30 karma points
    Aug 06, 2012 @ 10:46
    kerstin
    0

    creating an XLST file which should show me selective pages

    hello,

    I hop someone can help me. it is my first time with xlst files, so please make it as easy as it can be :-)

    I would like to have a area on a subpage on umbraco where specified other pages should be shown.

    I already mad an xlst for listening subpages, works great. but I need something more specific.

    I need sites to be shown from different paths. for example

    MAIN1

    sub1

    subsub1

    subsub1

    sub2

    subsub2

    subsub2

    sub3

     

    now on Sub1 I would like to have all pages listed which are under Sub2.

    is there some kind of a filter I can use? I alread tried "List Subpages from a Changable Source"

    but I don't know how to change the code.... :-(

     

    any help would be great.

     

    thank you

     

     

  • mithun 42 posts 63 karma points
    Aug 10, 2012 @ 14:52
    mithun
    0

    Hi,

    Before xslt you need to study xpath then only the xslt coding become easy.

     <xsl:variable name="sub2" select="umbraco.library:GetXmlNodeById(1068)" />


           <xsl:variable name="sub2child" select="$sub2/child::node()"/>
      <xsl:for-each  select="$sub2child/@nodeName">

       <xsl:value-of select="."/>
      <br/>
      
    </xsl:for-each>

     

Please Sign in or register to post replies

Write your reply to:

Draft