Copied to clipboard

Flag this post as spam?

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


  • David W. 159 posts 284 karma points c-trib
    Nov 23, 2010 @ 09:16
    David W.
    0

    Recursive macro parameter of type propertyTypePicker

    Hello,

    I have a xslt macro that displays a RTE-property on my startpage. I want this to be recursive so that it displays on all childpages as well. The macro parameter "field" is of type propertyTypePicker.

    In my template:

    <umbraco:Macro field="myRTE" Alias="RightColumn" runat="server"></umbraco:Macro>

    This currently only works (ie displays) on the startpage where the myRTE-property is set. I was hoping that I could make this recursive (display on subpages) by specifying the parameter with a change like this: field="[$myRTE]", but it does not appear to work.

    Do I need to make any chages in the actual XSLT? What am I doing wrong?

    edit: I noticed the xslt had this row specified

    <xsl:if test="$currentPage/* [name() = $field and not(@isDoc)] != ''">

    Might this causing the problem? For the subpages, currentPage doesn't contain the $field specified...

Please Sign in or register to post replies

Write your reply to:

Draft