Copied to clipboard

Flag this post as spam?

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


  • Giuseppe 34 posts 56 karma points
    Nov 25, 2011 @ 15:36
    Giuseppe
    0

    Macro in editor not work!

    Hi Guys, I have an issue with a macro (a form) put in an html editor that not work.

    I have an usercontrol that render a form. This is imported as macro in Umbraco; the flag "use in editor" is set to true. Then I insert the macro in html editor but doesn't work.

    This is the html results:

    <div umb_macroalias="Form" ismacro="true" onresizestart="return false;" umbversionid="a2f84e16-e4ea-444e-ba87-95e303a47d41" umbpageid="3175" title="This is rendered content from macro" class="umbMacroHolder"><!-- startUmbMacro -->
    <div class="motoreRicerca">
    <div class="row">
    <div class="colonna doppia">Nome *</div>
    <div class="colonna doppia">Cognome *</div>
    </div>
    <div class="bottoni centrato"></div>
    </div>
    <!-- endUmbMacro --></div>
    <p> </p> 

    Why the html code is different to original html of user controls? In this there are not the aspx controls like input and button...

    Anyway, the main point is that the form is not show in page, without any errors.

    Thanks

  • Owen 123 posts 246 karma points
    Nov 25, 2011 @ 16:02
    Owen
    0

    Does this macro within a form(with runat="server")?

  • Giuseppe 34 posts 56 karma points
    Nov 25, 2011 @ 16:06
    Giuseppe
    0

    With <form runat="server"> or without the result doesn't change :-(

  • Owen 123 posts 246 karma points
    Nov 25, 2011 @ 16:17
    Owen
    0

    make sure few things:

    1. Page has been published

    2. Usercontrol run correctly

    3. the html editor content has been ouputed

  • Giuseppe 34 posts 56 karma points
    Nov 25, 2011 @ 16:22
    Giuseppe
    0

    1. Yes

    2. Usercontrols works as well, it is used in other page (not in editor) and works

    3. No, in the page, html code isn't present in generated source

Please Sign in or register to post replies

Write your reply to:

Draft