Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5826

Revise node type of singletons

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Neutral Neutral
    • 4.5.x
    • 4.5.20, 5.2.5, 5.3
    • templating
    • None

      Some of singletons paragraphs has mgnl:contentNode type. We should investigate if:

      A] Those should have mgnl:component type.

      • The counting of contentNodes in info.magnolia.pages.app.availability.CanAddComponentRule.isAvailableForItem(Item) should go away (Magnolia 5.x only).

      B] Count contentNodes also in

      • info.magnolia.templating.elements.AreaElement.numberOfComponents(Node)
      • info.magnolia.templating.elements.AreaElement.end(Appendable)
      • info.magnolia.templating.elements.AreaElement.hasComponents(Node) should call the numberOfComponents method to prevent code duplication.

        Acceptance criteria

              Unassigned Unassigned
              rkovarik Roman Kovařík
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:

                  Bug DoR
                  Task DoD