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.
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
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
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...
/Chriztian
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
is working on a reply...