Uploaded image for project: 'Magnolia pages module'
  1. Magnolia pages module
  2. PAGES-687

Port templating annotations endpoint to Norsu

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Neutral
    • 6.3.0
    • None
    • None
    • None

    Description

      Exhaustive List of attributes can be found here: config.yaml
      The value of the ElementAttributes are computed against different implementations of `info.magnolia.templating.elements.AbstractContentTemplatingElement`

      The react frontend-helpers project is using only a subset of the attributes (see TemplateAnnotation.js )

      const PAGE_MAP = {
      content: ['@path', ''],
      dialog: ['dialog', '', getValueFromObject]
      };
      const AREA_MAP = {
      name: ['@name', ''],
      content: PAGE_MAP.content,
      dialog: PAGE_MAP.dialog,
      availableComponents: ['availableComponents', []],
      type: ['type', 'list', getValueFromObject],
      label: ['title', '', getValueFromObject],
      inherit: ['inheritance', false, getValueFromObject],
      optional: ['optional', false, getValueFromObject],
      createdAreaNode: ['createAreaNode', true, getValueFromObject],
      showAddButton: ['maxComponents', true],
      showNewComponentArea: [null, true],
      description: ['description', '', getValueFromObject],
      activationStatus: [null, 0]
      };
      
      const COMPONENT_MAP = {
      content: PAGE_MAP.content,
      dialog: PAGE_MAP.dialog,
      label: ['title', '', getValueFromObject],
      description: ['description', '', getValueFromObject],
      activationStatus: [null, 0]
      };

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                aichimescu Andrei Ichimescu
                apchelintcev Aleksandr Pchelintcev
                AuthorX
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoR

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 5h 50m
                      5h 50m