Copied to clipboard

Flag this post as spam?

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


  • alexei 21 posts 40 karma points
    Nov 16, 2009 @ 10:09
    alexei
    0

    inserting macro

    I have a macro which I need insert into my article. I have two fields. The first is included directly to template and it is working fine. The second field included in template with another macro, and when I try to use inline macro (<umbraco:Macro Alias="MyMacro" runat="server"></umbraco:Macro>) inside html nothing happens.

    I appreciate any help you can offer.

    Alexei

  • Chris Houston 535 posts 980 karma points MVP admin c-trib
    Nov 16, 2009 @ 10:18
    Chris Houston
    0

    Hi Alexei,

    The mark up used when you insert Macros inline is different. Try clicking on the Macro button above your Richtext editor and insert the macro that way.

    As an example here is a simple macro ( with dummy data ) inserted inline:

    <p>
    <div umb_macroalias="Footer" ismacro="true" onresizestart="return false;" umbversionid="427b6dcd-38b0-4576-b12e-da7236f2706e" umbpageid="1068" title="This is rendered content from macro" class="umbMacroHolder"><!-- startUmbMacro -->
    <div class="Footer">
    <div id="FooterMenuSection">
    <ul>
    <li><a href="/">Services</a>
    <ul>
    <li><a href="/">Example service</a></li>
    <li><a href="/">Example service 2</a></li>
    </ul>
    </li>
    </ul>
    </div>
    </div>
    <!-- endUmbMacro --></div>
    </p>

    Cheers,

    Chris

  • alexei 21 posts 40 karma points
    Nov 16, 2009 @ 11:38
    alexei
    0

    Chris, thanks but it doesn't work

    Firstly I use simple editor in this field. Secondly I'd tryed to insert code from RTE which is similar to your suggestion. But it did't help.  

Please Sign in or register to post replies

Write your reply to:

Draft