How du you customize Umbracos default property editors?
I've always thought about this, since i started working with Umbraco, and still haven't found a decent solution.
Let's say for example you wan't to add a dropdown to the RelatedLinks with optional classes, to set on the link, so you could call classes on the HTML element, like <a class="@link.ClassName">@link.Caption</a>
Is this in any way possible? Or do you have to basically clone the entire property edtior, and make your own changes/customizations, and create your "custom" editor based on that.
I tried the same solution, but didn't think it was so "clean" as it could be. And it was just a dropdown i wanted to add, would be so much easier if you could just add it to the content picker instead.
But i had in mind to add some conditional logic show/hide of fields in backend, based on other fields, and therefore i have to add to all existing property editors, but that won't ever be possible if i understood correct?
Customize current property editors
How du you customize Umbracos default property editors?
I've always thought about this, since i started working with Umbraco, and still haven't found a decent solution.
Let's say for example you wan't to add a dropdown to the RelatedLinks with optional classes, to set on the link, so you could call classes on the
HTML
element, like<a class="@link.ClassName">@link.Caption</a>
Is this in any way possible? Or do you have to basically clone the entire property edtior, and make your own changes/customizations, and create your "custom" editor based on that.
Hi Tobias,
To achieve it, we have been using Nested Content. It combines various Umbraco data types. So, in your case we can add URL Picker and Class Dropdown.
Nested Content Link: https://our.umbraco.com/documentation/getting-started/backoffice/property-editors/built-in-property-editors/Nested-Content/
Cheers,
Shaishav
I tried the same solution, but didn't think it was so "clean" as it could be. And it was just a dropdown i wanted to add, would be so much easier if you could just add it to the content picker instead.
Appreciate the answer though :)
Hi,
I would suggest building your own, instead of changing the build-in ones. You get into a lot of trouble with updates and not having full control etc.
There are many tutorials out there on the matter. Have you run into any specific issues while building with umbraco?
Never run into any issues.
But i had in mind to add some conditional logic show/hide of fields in backend, based on other fields, and therefore i have to add to all existing property editors, but that won't ever be possible if i understood correct?
Not really...
https://www.dot-see.com/en/blog/a-simple-way-to-hide-fields-in-the-umbraco-back-end/
Interesting approach, but yeah still not a descent way to do it, as the article states. Because of the risk when updating Umbraco.
So it's never been done before, because it's simply nearly impossible?
there is a package somewhere that wraps this better, but I can't remember its name :-s
Do you know if there is a possibility of this in Umbraco 8?
is working on a reply...