Internal Teaser returns an image from a children of the target page, when the
target has no image in its intro / header but has images in the main content.
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Key: MGNLSTK-983
URL: http://jira.magnolia-cms.com/browse/MGNLSTK-983
Project: Magnolia Standard Templating Kit
Issue Type: Bug
Components: templates
Affects Versions: 2.0.3
Reporter: Samuel Schmitt
Fix For: 2.0.x
An internal teaser must returns the first image found in the target content
pointed by the teaser if no teaser image was defined in target intro/header.
This is what the javadoc of
{{info.magnolia.module.templatingkit.templates.components.InternalTeaserModel.findImage(Node)}}
says.
The problem with the implementation of {{InternalTeaserModel.findImage}} is
that when no teaser image is defined in the intro/header of the target, the
first image found could come from a child page. And according the usage of an
internal teaser, we expect that the image comes from an area of the target.
{{InternalTeaserModel.findImage}} must first search in the areas of the target
before searching in the subpages.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------