[
http://jira.magnolia.info/browse/MAGNOLIA-2128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16963#action_16963
]
Gregory Joseph commented on MAGNOLIA-2128:
------------------------------------------
Thanks for the patch ! Will apply soon, if no template issues are discovered.
> 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
> Components: taglibs
> Affects Versions: 3.5.4
> Reporter: Thomas Duffey
> Assignee: Gregory Joseph
> Fix For: 3.6
>
> 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/
----------------------------------------------------------------