Copied to clipboard

Flag this post as spam?

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


  • Alex Perotti 53 posts 94 karma points
    Jun 30, 2013 @ 22:49
    Alex Perotti
    0

    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?

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Jul 01, 2013 @ 00:11
    Lee Kelleher
    0

    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.

  • Alex Perotti 53 posts 94 karma points
    Jul 02, 2013 @ 01:19
    Alex Perotti
    0

    That was a dumb question... I solved myself. A simple <umbraco:Item field="macro" runat="server" /> rendered the macro.

    Thank you for assistance anyway :) 

Please Sign in or register to post replies

Write your reply to:

Draft