If the macro is placed in a 'regular' node (using the RTE) it executes as expected and the parameter is passed. However, I'd also like to call the macro from code as follows:
Dim mcr As New umbraco.presentation.templateControls.Macro()
mcr.Alias = strInsertValue
mcr.MacroAttributes.Add("PropertyAlias", "lessonticketprice")
mcr.RenderControl(writer)
In this case no parameter is passed and the output is only 'test:'
Is the 'Model' available in this context? If not, what should I use to get the parameter?
Partial View Macro parameters when rendered from code
Hi, I have a simple Partial View Macro:
If the macro is placed in a 'regular' node (using the RTE) it executes as expected and the parameter is passed. However, I'd also like to call the macro from code as follows:
In this case no parameter is passed and the output is only 'test:'
Is the 'Model' available in this context? If not, what should I use to get the parameter?
Thanks, Steve
is working on a reply...