[
http://jira.magnolia-cms.com/browse/MGNLSTK-968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Samuel Schmitt updated MGNLSTK-968:
-----------------------------------
Description:
First create {{External Page Teaser}}:
- open the page demo-project / about
- in Extra, add a new component {{External Page Teaser}}
- add an URL and in the tab {{TeaserOverwrite}} add an image
- save
You must see that only the url is displayed not the image.
Why?
First:
- open the associated flt
{{/templating-kit/components/teasers/externalPage.ftl}}
- open the modelClass
{{info.magnolia.module.templatingkit.templates.components.ExternalTeaserModel}}
You will find in the ftl these lines:
{code}
[#if !hideTeaserImage]
[#assign imageLink = (model.image!).link!]
[/#if]
{code}
You can try to find in the modelClass the method {{getImage()}}, but you wont
find it...
Solution:
- add a method {{getImage}} to the model
- or maybe it is more easy if the model extends
{{info.magnolia.module.templatingkit.templates.components.ImageModel}}
was:
First create {{External Page Teaser}}:
- open the page demo-project / about
- in Extra, add a new component {{External Page Teaser}}
- add an URL and in the tab {{TeaserOverwrite}} add an image
- save
You must see that only the url is displayed not the image.
Why?
First:
- open the associated flt {/templating-kit/components/teasers/externalPage.ftl}}
- open the modelClass
{{info.magnolia.module.templatingkit.templates.components.ExternalTeaserModel}}
You will find in the ftl these lines:
{code}
[#if !hideTeaserImage]
[#assign imageLink = (model.image!).link!]
[/#if]
{code}
You can try to find in the modelClass the method {{getImage()}}, but you wont
find it...
Solution:
- add a method {{getImage}} to the model
- or maybe it is more easy if the model extends
{{info.magnolia.module.templatingkit.templates.components.ImageModel}}
> External Page Teaser does not render its image
> ----------------------------------------------
>
> Key: MGNLSTK-968
> URL: http://jira.magnolia-cms.com/browse/MGNLSTK-968
> Project: Magnolia Standard Templating Kit
> Issue Type: Bug
> Components: paragraphs
> Affects Versions: 2.0.3
> Reporter: Samuel Schmitt
> Priority: Critical
> Fix For: 2.0.4
>
>
> First create {{External Page Teaser}}:
> - open the page demo-project / about
> - in Extra, add a new component {{External Page Teaser}}
> - add an URL and in the tab {{TeaserOverwrite}} add an image
> - save
> You must see that only the url is displayed not the image.
> Why?
> First:
> - open the associated flt
> {{/templating-kit/components/teasers/externalPage.ftl}}
> - open the modelClass
> {{info.magnolia.module.templatingkit.templates.components.ExternalTeaserModel}}
> You will find in the ftl these lines:
> {code}
> [#if !hideTeaserImage]
> [#assign imageLink = (model.image!).link!]
> [/#if]
> {code}
> You can try to find in the modelClass the method {{getImage()}}, but you wont
> find it...
> Solution:
> - add a method {{getImage}} to the model
> - or maybe it is more easy if the model extends
> {{info.magnolia.module.templatingkit.templates.components.ImageModel}}
--
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]>
----------------------------------------------------------------