Getting a recursive value in xslt in Umbraco.


/ Published in: XSLT
Save to your folder(s)

Umbraco specific xslt snippet that I use regularly. (via neehouse) originally from: http://forum.umbraco.org/yaf_postst2751_XSLT-Tip--Display-a-field-recursively.aspx


Copy this code and paste it in your HTML
  1. <xsl:variable
  2. name="recursiveValue"
  3. select="$currentPage/ancestor-or-self::node string(data[@alias='recursiveValue'])!=''] [position()=1] /data[@alias='field']"
  4. />

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.