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="".
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.
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
Have you looked at this blog: http://www.richardsoeteman.net/2010/01/04/CreateACustomMacroParameterType.aspx. Maybe you missed something.
Jeroen
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
is working on a reply...