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

SPA developer can easily get activation state

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • 1.0.0
    • None
    • None
    • None
    • Yes
    • SPA Editor 14
    • 5

    Description

      User Story: As a SPA developer, I can easily get the activation state of components so that content authors will see the activation state of components as they do with FTL based pages.

      Notes:

      Activation state is normally provided in the HTML comments which the page editor uses to generate the green bars. So a developer would need to supply it for those.

      Probably the generic Magnolia library should have a conveneint method to calculate the activation state based on the content. 

      In the end, ideally the typical SPA developer shouldnt have to think about it, they should just use our best practice library - and the HTML comments will be generated with everything they need, including the activation state.

      Technical Note:

      There is already a "mgnl:activationStatus" property - but it does not hold the actual activation status as we need it. For example a yellow item has a value of 'true'.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              sang.ngo Sang Ngo Huu
              czimmermann Christopher Zimmermann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 2.25d
                    2.25d