Uploaded image for project: 'Content Editor'
  1. Content Editor
  2. CONTEDIT-313

Improve Adding/Loading block

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Done
    • Neutral
    • 2.0
    • 2.0
    • CM & OC 25, Content Mngmt 01
    • 3

    Description

      Block is registered via BlockRegistry, which stores all the BlockDefinitions defined in modules, but some of the blocks are not validated or module containing blocks is not aligned, therefore I suggest to:

      1. Validate Blocks before populate to Block Chooser/Block Menu 
        1. Block name is required
        2. Block field is required
      2. Show verbose error notification/message when loading Story containing invalid Block

      Dev Note:

      • Loading Content Editor: info.magnolia.editor.field.MultiBlockResolution#resolveEntryEditorDefinition
      • Populate blocks to Block Chooser/Block Menu: info.magnolia.editor.field.factory.AddBlockMenuFactory

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              thien.quach Quach Hao Thien
              thien.quach Quach Hao Thien
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Time Spent - 6d 7h Remaining Estimate - 3h
                    3h
                    Logged:
                    Time Spent - 6d 7h Remaining Estimate - 3h
                    6d 7h