Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I've created a template with a macro picker data type.It stores it's information in this format: <?UMBRACO_MACRO macroalias=\"macroAlias\" />I can parse the data with sono code, but there is a smarter way to use this data type?
Hi Alex,
Depending on how the macro tag is being rendered, (either in a template or another macro), then Umbraco should try to render it for you.
What are you using to output the macro picker's tag? (Razor? MVC? XSLT?)
Cheers, Lee.
That was a dumb question... I solved myself. A simple <umbraco:Item field="macro" runat="server" /> rendered the macro.Thank you for assistance anyway :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Macro picker: how to use it?
I've created a template with a macro picker data type.
It stores it's information in this format: <?UMBRACO_MACRO macroalias=\"macroAlias\" />
I can parse the data with sono code, but there is a smarter way to use this data type?
Hi Alex,
Depending on how the macro tag is being rendered, (either in a template or another macro), then Umbraco should try to render it for you.
What are you using to output the macro picker's tag? (Razor? MVC? XSLT?)
Cheers, Lee.
That was a dumb question... I solved myself. A simple <umbraco:Item field="macro" runat="server" /> rendered the macro.
Thank you for assistance anyway :)
is working on a reply...