I have followed it as best as I know how and can't get the macro to render. I have placed a text area for troubleshooting and seeing what shows up and when I use the "[#widgetAlias]" as the widgetIdArray parameter value of the macro, all that displays is "<macro />". When I place a value like "test", it shows "<macro><widgetIdArray>test</widgetIdArray></macro>. However, that will not allow me to recurse through the content items located in the parent folder.
Can someone help me figure out what I'm missing that would cause the macro not to render?
Trying to implement Wiki post
I have tried to implement the post to the wiki found here without any success:
http://our.umbraco.org/wiki/how-tos/creating-reusable-content
I have followed it as best as I know how and can't get the macro to render. I have placed a text area for troubleshooting and seeing what shows up and when I use the "[#widgetAlias]" as the widgetIdArray parameter value of the macro, all that displays is "<macro />". When I place a value like "test", it shows "<macro><widgetIdArray>test</widgetIdArray></macro>. However, that will not allow me to recurse through the content items located in the parent folder.
Can someone help me figure out what I'm missing that would cause the macro not to render?
Hi Thomas,
The syntax for passing through document properties to macros is explained on this wiki page:
http://our.umbraco.org/wiki/reference/templates/umbracomacro-element/macro-parameters/advanced-macro-parameter-syntax
When you use "[#widgetAlias]", that will only use the current document/page. If you need to use a recursive value, then use "[$widgetAlias]" instead.
Cheers, Lee.
Thank you!
is working on a reply...