Copied to clipboard

Flag this post as spam?

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


  • Carlos 338 posts 472 karma points
    Jul 27, 2011 @ 23:15
    Carlos
    0

    XSLT get child templates from master template

    Hey all,

    I am trying to get all of my child templates from one of my master templates.

    Here is how I have my statement

      <!--Internal page templates-->
      <xsl:when test="umbraco.library:GetXmlNodeCurrent()/ancestor-or-self::*/@template = 1085">
      child of internal template
    <xsl:value-of select="bodyText"/>
    </xsl:when>

    I want to get the child templates of the template 1085 in the example.

    Can anyone help please.

    thanks.

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jul 28, 2011 @ 08:28
    Dirk De Grave
    0

    Carlos,

    I don't think a xslt helper method is available to retrieve child templates from xslt. You can however write your own xslt extension (method) to retrieve all child templates for a given template.

    All templates are stored in cmsTemplate table.

    Anyway, I'm curious why you'd need that from xslt? Can you elaborate?

    Cheers,

    /Dirk

Please Sign in or register to post replies

Write your reply to:

Draft