Copied to clipboard

Flag this post as spam?

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


  • Stefan Ekman 18 posts 37 karma points
    Sep 28, 2011 @ 18:07
    Stefan Ekman
    0

    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

  • Nigel Wilson 945 posts 2077 karma points
    Sep 28, 2011 @ 19:28
    Nigel Wilson
    0

    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

  • Stefan Ekman 18 posts 37 karma points
    Sep 28, 2011 @ 20:45
    Stefan Ekman
    0

    Thanks,

    Very nice and simple solution!

    I have worked with a few different CMS systems and won't look back! :)

Please Sign in or register to post replies

Write your reply to:

Draft