Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Thomas 3 posts 93 karma points
    Jul 22, 2022 @ 13:22
    Thomas
    0

    Append/inject/extend content type properties with additional view (and/or NG controller)

    Hola!

    Like the title says, I'm trying to preferably append (during processing), or else inject (during runtime) a custom view (hooked up to an NG controller) into or below a property view (that's registered for a content type).

    What I've tried so far without success:

    1. Checked services like IContentTypeService, IContentService, IMacroService, etc. for ways to dynamically add relevant stuff.
    2. Checked whether it's possible to bind a macro (from code) to a property (IPropertyType).
    3. Checked to see if it's possible to extend existing editors.

    It is possible to query the content type form with angular.element('form [name=contentForm]') and navigate through the $$controller objects to get properties. Jet, it's a bit hacky to query the HTML DOM and inject custom code, because references (like class or form names) might change.

    Anyone out there with suggestions, solutions or is just generally intrested in talking about real-time validation in the backoffice?

Please Sign in or register to post replies

Write your reply to:

Draft