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 takes optional parameters as noted in this wiki article. However, it appears that the parameters are accessed using @PageData[index] and not @Parameter.property.
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
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.
is working on a reply...
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.