Copied to clipboard

Flag this post as spam?

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


  • JohnC 37 posts 61 karma points
    Jun 14, 2012 @ 11:56
    JohnC
    0

    Nested Marcos with parameters in v4.7

    Hi,

     

    Is it possible to have a nested macro with parameters? I've seen you can use the syntax below to include another script but i really need to include the macro with parameters

    @{
    RenderPage("~/macroScripts/general/headerMenu.cshtml",)
    }

     

    Any help would be great.

    Thanks
    John

  • Douglas Ludlow 210 posts 366 karma points
    Jun 14, 2012 @ 15:59
    Douglas Ludlow
    0

    RenderPage takes optional parameters as noted in this wiki article. However, it appears that the parameters are accessed using @PageData[index] and not @Parameter.property.

Please Sign in or register to post replies

Write your reply to:

Draft