Copied to clipboard

Flag this post as spam?

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


  • Thomas Foskey 15 posts 35 karma points
    Dec 14, 2010 @ 06:25
    Thomas Foskey
    0

    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?

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Jan 01, 2011 @ 08:57
    Lee Kelleher
    0

    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.

  • Thomas Foskey 15 posts 35 karma points
    Jan 01, 2011 @ 21:34
    Thomas Foskey
    0

    Thank you!

Please Sign in or register to post replies

Write your reply to:

Draft