umb-variant-content is too restrictive in its usage #13497
LennardF1989
started this conversation in
Features and ideas
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Being able to use umb-property (often in combination with scaffolding) is one of the many great features in Umbraco.
However, some properties (eg. the blocklist) require an umb-variant-content to work properly. This directive is rather restrictive in what it does, because it pretty much decides for you that you have apps (eg. a content-app) and a need a bar to display/edit the name of the "content".
This is problematic if you want to create a custom section, employ scaffolding, but without the usual UI (eg. I'm really only interested in the property configurations and handle saving them myself).
I ended up hooking the directive and replacing the template with
<div ng-transclude></div>
and setting transclude to true (under certain circumstances to not break the actual backoffice). But this solution is "meh" and should really be supported by Umbraco itself to handle multiple use cases.Beta Was this translation helpful? Give feedback.
All reactions