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

Allow more control on the HTML Comment generation

    XMLWordPrintable

Details

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

    Description

      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.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD