Custom Macro parameter with dropdown with values from DB
Hi,
Found some similar questions but they are quite old and not any very clear answers so here I go..
I have a UserControl and created a Macro for it and all works fine. Now I want to extend it so when I add the Macro to a page I want a DropDown box with values from a table to select from which will set a public parameter for the usercontrol.
I'm subscribing to the Umbraco Video's so if this is done here please tell me or if anyone knows the steps to do this?
Custom Macro parameter with dropdown with values from DB
Hi,
Found some similar questions but they are quite old and not any very clear answers so here I go..
I have a UserControl and created a Macro for it and all works fine. Now I want to extend it so when I add the Macro to a page I want a DropDown box with values from a table to select from which will set a public parameter for the usercontrol.
I'm subscribing to the Umbraco Video's so if this is done here please tell me or if anyone knows the steps to do this?
Thanks,
Stefan
Hi Stefan
http://www.richardsoeteman.net/2010/01/04/CreateACustomMacroParameterType.aspx is a great blog post that I have referenced previously when adding a custom macro parameter.
Mine was a simple dropdown list for image alignment (left or right) but it worked first time when referencing the above post.
HTH
Nigel
Thanks,
Very nice and simple solution!
I have worked with a few different CMS systems and won't look back! :)
is working on a reply...