Copied to clipboard

Flag this post as spam?

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


  • Jason N 55 posts 79 karma points
    Jun 07, 2011 @ 17:58
    Jason N
    0

    Dynamic Macro Parameters

    Are user created document properties the only values which can be passed to macros through parameters?  What if I wanted to pass Model.Id or Model.Name?  I've tried this using the {#} syntax and it doesn't work.

  • Eran Meir 401 posts 543 karma points
    Jun 07, 2011 @ 22:54
    Eran Meir
    0

    maybe this will help http://our.umbraco.org/wiki/reference/templates/umbracomacro-element/macro-parameters/advanced-macro-parameter-syntax

    and this http://our.umbraco.org/wiki/reference/templates/umbracomacro-element

    as you can see you need to pass the id as the following line

    <umbraco:Macro Alias="YourMacroAlias" runat="server" 
    Y
    ourPropertyName="[#pageID]"></umbraco:Macro>
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies