Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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 ??
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.
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.
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...
Here is an example with the key in the manifest file.
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,
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted