[MTE-48] Image Component Created: 08/Oct/15 Updated: 15/Apr/16 Resolved: 19/Feb/16 |
|
| Status: | Closed |
| Project: | Magnolia Templating Essentials |
| Component/s: | None |
| Affects Version/s: | 0.7 |
| Fix Version/s: | 0.9 |
| Type: | Story | Priority: | Major |
| Reporter: | Christopher Zimmermann | Assignee: | Christoph Meier |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | 0d | ||
| Time Spent: | 7h | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Release notes required: |
Yes
|
| Date of First Response: | |
| Epic Link: | LD: components + pages |
| Sprint: | Basel 31 |
| Story Points: | 3 |
| Description |
|
A component to add an Image with optional credit and caption. The Image component should work the same as the image in the textImage component.
TemplateScript: The template script must behave as described in the above descriptions. Like with the textImage, if there are no copyright or credit - then just an img tag should be created. If a copyright or credit exists, they should be included in span tags - and the img and span tags should be within an additional div tag. Parameters: |
| Comments |
| Comment by Philip Mundt [ 29/Oct/15 ] |
|
Please also remove the model class associated with the component. |
| Comment by Christoph Meier [ 16/Feb/16 ] |
|
New component image was created and also added to the page template basic as available component. The component is reusing both macros/image.ftl and includes/init.ftl. dialogs/components/image defines basically a subset of the parameters used in the existing textImage component. Possible definition params are: divClass, imageWrapperClass and imgClass. |