BaseContentTag.getFirstMatchingNode() should search for contentNode in parent
pages when inherit == true
--------------------------------------------------------------------------------------------------------
Key: MAGNOLIA-2128
URL: http://jira.magnolia.info/browse/MAGNOLIA-2128
Project: Magnolia
Issue Type: Improvement
Affects Versions: 3.5.4
Reporter: Thomas Duffey
Assignee: Boris Kraft
Attachments: BaseContentTag.java.inherit.patch
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------