Anyone know a way to use the Multiple url picker as a macro parameter? I already create some custom propertyeditors, but not sure how to proceed for a more complex type like the Umbraco.MultipleUrlPicker..
It's possible therefore to create a package.manifest file that points to the type of editor you want to use as a parameter editor, and set this to be true, along with setting some defaultConfig: that the editor might need to know where to pick from.
There is an Umbraco Package that assists in the generation of the package.manifest file for the property editor you want to convert:
Thanks Mark, seems pretty simple finally! i use the generator on 7.x and use the files generated to replicate everything on 8. it work, but seems that the Multiurlpicker that replace the related link in Umbraco 8 is to complex. It work flawlessly... until i try to get the value in my View. Nothing is save in the Model.MacroParameters.
Umbraco.MultiUrlPicker as a Macro parameters.
Anyone know a way to use the Multiple url picker as a macro parameter? I already create some custom propertyeditors, but not sure how to proceed for a more complex type like the Umbraco.MultipleUrlPicker..
Thanks,
Hi christian
There is a IsParameterEditor option you can set on a property editor to make it available as a Macro:
https://our.umbraco.com/Documentation/Extending/Macro-Parameter-Editors/#isparametereditor
It's possible therefore to create a package.manifest file that points to the type of editor you want to use as a parameter editor, and set this to be true, along with setting some defaultConfig: that the editor might need to know where to pick from.
There is an Umbraco Package that assists in the generation of the package.manifest file for the property editor you want to convert:
https://our.umbraco.com/packages/developer-tools/parameter-editor-generator/
regards
Marc
Thanks Mark, seems pretty simple finally! i use the generator on 7.x and use the files generated to replicate everything on 8. it work, but seems that the Multiurlpicker that replace the related link in Umbraco 8 is to complex. It work flawlessly... until i try to get the value in my View. Nothing is save in the Model.MacroParameters.
Maybe i just forgot to do something....
But thanks again
is working on a reply...