Using Related Links in a custom as Umbraco macro for grid
I've tried to port the related link property type to a custom macro parameter. The template loads once selected in the grid but it cannot read the max value stored in the property type.
but you may be able to style it better, basically it's a table!
I would tend to use the RJP multi url picker here, as whilst this is a third party plugin, it appears to behave more closely to the core content pickers than the relatedlinks user interface and it fits!
Using Related Links in a custom as Umbraco macro for grid
I've tried to port the related link property type to a custom macro parameter. The template loads once selected in the grid but it cannot read the max value stored in the property type.
Any ideas
I've tried calling the umbraco.controllers.js through the javascript and assigning a prevalue for the max value but still no luck.
Heres the output:
Did you manage to get this working?
Thanks
Hi Paul
The trick is to supply a defaultConfig option in the package manifest file;
https://our.umbraco.org/Documentation/Extending/Macro-Parameter-Editors/
eg
regards
Marc
Hi Marc,
Thanks for this, it works but the only downside is that it doesn't show all the options. It seems to crop off the new window and the add button.
Is there a way to show everything?
Thanks
Paul
Hi Paul
I see what you mean!
The RJP.MultiUrl picker is probably better suited as a macro parameter:
https://our.umbraco.org/projects/backoffice-extensions/multi-url-picker/
but if you were set on using relatedlinks you could add a stylesheet to your package manifest file:
and then apply some styling rules for the situation when the related links view appears in a macro overlay eg:
would add a scroll bar..
but you may be able to style it better, basically it's a table!
I would tend to use the RJP multi url picker here, as whilst this is a third party plugin, it appears to behave more closely to the core content pickers than the relatedlinks user interface and it fits!
is working on a reply...