Copied to clipboard

Flag this post as spam?

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


  • Mohamed Besher El Said 39 posts 258 karma points
    Jul 06, 2015 @ 05:24
    Mohamed Besher  El Said
    0

    add macro parameter of type Dropdownlist

    I am using umbraco version 7.2.6 . I want to add macro parameter of type Dropdownlist .

    How can I set source (data come from database ) of dropdownlist ??

    thanks

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jul 06, 2015 @ 08:56
    Ismail Mayat
    0

    Mohamed,

    A long time ago in older Umbraco versions you have todo write code and create your own macro parameter type see http://www.richardsoeteman.net/2010/01/04/CreateACustomMacroParameterType.aspx however not quite sure how you do it now.

    Regards

    Ismail

  • Matt Brailsford 4125 posts 22224 karma points MVP 9x c-trib
    Jul 06, 2015 @ 09:09
    Matt Brailsford
    0

    It's still the same, it's just changed a little how you register them. Take a look at a blog post by Tim Geyssens http://www.nibble.be/?p=349. It's basically the same as creating property editors now, but they can't have prevalues and you have to flag them as being parameter editors in the package manifest file.

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Jul 06, 2015 @ 09:11
    Chriztian Steinmeier
    0

    If I remember correctly, it's pretty straightforward to use a homemade Property Editor as a macro parameter - just a key in the manifest file.

    I'm pretty sure it's covered in the umbraco.tv videos on building PropertyEditors...

    /Chriztian

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jul 06, 2015 @ 09:35
    Dennis Aaen
    1

    Hi Mohamed,

    Here is an example with the key in the manifest file.

    https://github.com/umbraco/AngularWorkbook/blob/master/Exercises/Exercise10.md

    And a link to the umbraco.tv videos on how to build a property editor http://umbraco.tv/videos/umbraco-v7/developer/extending/property-editors/introduction/

    Hope this helps,

    /Dennis

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies