Uploaded image for project: 'Magnolia Frontend Helpers'
  1. Magnolia Frontend Helpers
  2. MGNLFE-57

Allow more control on the HTML Comment generation

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Obsolete
    • Icon: Critical Critical
    • None
    • 1.0.4
    • Template Annotations
    • None

      In the HTML comment used to render the green bars in the page editor, we lack the possibility to add the icons and styles elements attributes used by live-copy for instance.

      The current template annotation handler:

      https://git.magnolia-cms.com/projects/MODULES/repos/frontend-helpers/browse/packages/template-annotations/src/service/TemplateAnnotations.js

       

      The live-copy custom element attribute:

      https://git.magnolia-cms.com/projects/ADDON/repos/live-copy/browse/src/main/resources/livecopy/decorations/templating/config.pageEditorAttributes.component.icons.yaml

       

      To summarize, live-copy use 2 attributes of the current component JCR node to create 2 additional attributes in the component edition bar (icons and styles). Currently we have no way to set those attribute properly by using the SPA renderer.

        Acceptance criteria

              Unassigned Unassigned
              amanzoni Adrien Manzoni
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD