Copied to clipboard

Flag this post as spam?

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


  • Evan Harper 15 posts 37 karma points
    Jan 25, 2012 @ 21:40
    Evan Harper
    0

    Custom macro parameter - user interface screwy when editing template

    Greetings Umbraconauts!

    I'm working on a custom macro parameter. I have my class derived from System.Web.UI.WebControls.Panel and umbraco.interfaces.IMacroGuiRendering; in its OnLoad, it fills itself with a bunch of other controls, like this:

    It all seems to work when I'm inserting a macro into a content node; I can insert, get to the macro parameters screen, and work with my user interface.

    When I try to insert this macro into a template, I still see the interface I've created, but the "OK" button doesn't do anything. When I click one of the buttons in my interface, it posts... and then the entire user interface disappears and I'm left with a completely blank property pane. Clicking "OK" at that point inserts a blank Umbraco:Macro tag into my template, with Alias="".

    Anybody know what gives?

    (I'm on umbraco v 4.7.0)

    Thanks,

    Evan

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jan 25, 2012 @ 21:53
    Jeroen Breuer
    0

    Have you looked at this blog: http://www.richardsoeteman.net/2010/01/04/CreateACustomMacroParameterType.aspx. Maybe you missed something.

    Jeroen

  • Evan Harper 15 posts 37 karma points
    Jan 25, 2012 @ 21:59
    Evan Harper
    0

    Yes, I have followed those instructions. I don't think I've missed anything basic like that, since it works when inserting into Content but not in the template editor.

    Evan

Please Sign in or register to post replies

Write your reply to:

Draft