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.
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...
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...
is working on a reply...