Also as a side question, does the umbraco 8 work mean there is now opportunity for all of the core datatypes to be available for macro parameters without the need for the above?
I had the same issue of wanting to use MultiUrlPicker as a Macro Parameter.
I've gone a little bit further by copying multilinkpicker.controller.js to make my own property editor.
With a few console.log I found that $scope.$on("formSubmitting"... does not fire in the Macro context and so $scope.model.value = $scope.renderModel never happens.
I changed my copy of multilinkpicker.controller.js to set $scope.model.value every time $scope.renderModel is set
E.g.
$scope.renderModel.push(link);
$scope.model.value.push(link); // My code
It works.
There may be a fault in Umbraco? In any case I'm somewhat surprised that the MultiUrlPicker isn't available as a Macro property in base Umbraco (as at version 8.1.5)
Macro Parameter Editor in umbraco 8
Hi
I am trying to add a Macro Parameter Editor in umbraco 8.1.1 so that I can use the Multi Url Picker in a macro
I followed https://our.umbraco.com/documentation/Extending/Macro-Parameter-Editors/ (NB which isn’t verified for umbraco 8 yet) and the picker appears in the macro, it just doesn’t save anything? Would this be a known issue in umbraco 8?
Also as a side question, does the umbraco 8 work mean there is now opportunity for all of the core datatypes to be available for macro parameters without the need for the above?
Thanks
Andrew
package.manifest so far:
}
Just tried a 8.1.2 update but the macro datatype is still not saving
Currently i have the same Problem. But I am enabling MacroParameter PropertyEditors in a different way. I add a class like this
First i thought that it was because of the wrong ValueType (was initially set to string) but still not working.
I managed to make other PropertyEditors successfully available like RichTextEditor or MultipleMediaPicker.
Any help would be appreciated.
hi Claude
Can i ask where that class approach code sample is from, umbraco documentation?
My approach is currently based on https://our.umbraco.com/documentation/extending/macro-parameter-editors/ however that is still not "verified for umbraco 8" so i might be doing it incorrectly. The editor appears fine in the backoffice, it just doesn't save anything.
I'm just looking for a way to use the core property editor "Multi Url Picker" as a macro parameter :)
Sorry, i can't tell yoi where i found it. It was maybe stackoverflow not in the docs. When i am back from holidays i try to find it again.
I had the same issue of wanting to use MultiUrlPicker as a Macro Parameter.
I've gone a little bit further by copying multilinkpicker.controller.js to make my own property editor.
With a few console.log I found that $scope.$on("formSubmitting"... does not fire in the Macro context and so $scope.model.value = $scope.renderModel never happens.
I changed my copy of multilinkpicker.controller.js to set $scope.model.value every time $scope.renderModel is set E.g.
It works.
There may be a fault in Umbraco? In any case I'm somewhat surprised that the MultiUrlPicker isn't available as a Macro property in base Umbraco (as at version 8.1.5)
has anyone discovered a method for doing this in umb8 or should i create a bug in github? thanks
No, the only way seams to be the one that Russell explained. I think thats a bug.
In case anyone is interested... I added a feature request:
Macro Parameters in V8 - Any chance we can just use DataTypes? https://github.com/umbraco/Umbraco-CMS/issues/7319
is working on a reply...