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

Auto-generation is performed every time an area is rendered

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Neutral
    • None
    • 5.1
    • rendering
    • None

    Description

      Opening this ticket because i'm not sure this is by design. Although it can be useful as is.

      this.areaNode = getPassedContent();
              if (this.areaNode != null) {
                  this.areaPath = getNodePath(areaNode);
              }
              else {
                  // will be null if no area has been created (for instance for optional areas)
                  // current content is the parent node
                  Node parentNode = currentContent();
                  this.areaNode = tryToCreateAreaNode(parentNode);
                  this.areaPath = getNodePath(parentNode) + "/" + name;
              }
      

      getPassedContent() only returns non-null when [@area content=… /]

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                tmattsson Tobias Mattsson
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD