and get the value out of the 'pdfs' property within the macro, but ideally would prefer to pass in the data, rather than a property alias to that data.
What type of property is the 'pdfs' field? Not sure if you are aware but Advanced Macro Parameter Syntax doesn't work with XML data - you'll need to pass the field alias instead and grab it from your macro if that's the case.
No problem! Also doing things this way you sort of lose support for the RazorDataTypeModels if you are using them - in case you're interested this thread has some ways to manually cast the string value to a RazorDataTypeModel.
Advanced Macro Parameter Syntax with Razor
Hi,
Should the Advanced Macro Parameter Syntax work with Razor macros ?
The following doesn't seem to pass any value:
Whilst I can do the following:
and get the value out of the 'pdfs' property within the macro, but ideally would prefer to pass in the data, rather than a property alias to that data.
Thanks,
Hendy
Hey Hendy,
Pretty sure it works.
What type of property is the 'pdfs' field? Not sure if you are aware but Advanced Macro Parameter Syntax doesn't work with XML data - you'll need to pass the field alias instead and grab it from your macro if that's the case.
-Tom
Arrhhh, yes it's Xml data - could swap over to a Csv I suppose (since it's just a collection of node Ids, and not checking them with XPath)
Thanks Tom :)
No problem! Also doing things this way you sort of lose support for the RazorDataTypeModels if you are using them - in case you're interested this thread has some ways to manually cast the string value to a RazorDataTypeModel.
-Tom
is working on a reply...