0
votes

I'm looking to re-use an Umbraco Macro that's been rendered within a content pane, and use it in a page template. The block on the content page is below, what would I have to do to turn this into a new macro for a page template?

<div umb_source="5766" umb_firsttab="5846" 
    umb_macroalias="widgetname" 
    umb_secondtab="5847" 
    ismacro="true" onresizestart="return false;" 
    umbversionid="b8fc56a2-f4b0-42ee-a3b8-7115acdff669" 
    umbpageid="5756" 
    title="This is rendered content from macro" 
    class="umbMacroHolder">
    <!-- startUmbMacro -->
    <span>This macro does not provides rendering in WYSIWYG editor
    </span>
<!-- endUmbMacro --></div>
2
What version of Umbraco are you using?Douglas Ludlow

2 Answers

1
votes

I'd recommend using the "Insert Macro" button in the template editor (in the Settings section) to add the template. It gives you an interface to choose the appropriate options that will build the macro tag for you.

But something like this should work (Simular to Ankur Ghelani's, but includes the other options):

<umbraco:marco alias="widgetname" runat="server"
    source="5766"
    firsttab="5846"
    secondtab="5847" />
1
votes

In template you use as following:

<umbraco:Macro Alias="widgetname" runat="server" />

It should work