[MGNLSTK-968] External Page Teaser does not render its image Created: 11/Jun/12 Updated: 19/Jul/12 Resolved: 18/Jun/12 |
|
| Status: | Closed |
| Project: | Magnolia Standard Templating Kit (closed) |
| Component/s: | paragraphs |
| Affects Version/s: | 2.0.3 |
| Fix Version/s: | 2.0.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Samuel Schmitt | Assignee: | Robert Šiška |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Template: |
|
||||
| Acceptance criteria: |
Empty
|
||||
| Date of First Response: | |||||
| Description |
|
First create External Page Teaser:
You must see that only the url is displayed not the image. Why?
You will find in the ftl these lines: [#if !hideTeaserImage] [#assign imageLink = (model.image!).link!] [/#if] You can try to find in the modelClass the method getImage(), but you wont find it... Solution:
|
| Comments |
| Comment by Robert Šiška [ 15/Jun/12 ] |
|
Or even simpler, extend AbstractTeaserModel. There doesn't seem to be reason for extending AbstractSTKTemplateModel. |
| Comment by Christian Ringele [ 18/Jun/12 ] |
|
Implementation looks fine, closing ticket |