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

BaseContentTag.getFirstMatchingNode() should search for contentNode in parent pages when inherit == true

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 3.6
    • 3.5.4
    • taglibs
    • None

    Description

      I was expecting to be able to do something simple like this in a JSP:

      <cms:out contentNodeName="footerPar" nodeDataName="footerText" inherit="true"/>

      Unfortunately, BaseContentTag.getFirstMatchingNode() exits too soon when on a child page that does not have its own "footerPar" node. Parent pages should be searched for this content node to make inheriting with cms:out more useful.

      See attached patch.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              gjoseph Magnolia International
              tduffey Thomas Duffey
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD