[MGNLSTK-395] Image Control - image.ftl template: When uploaded a binary image (not chosen form dms), the filename is always rendered as image caption Created: 11/Jun/09  Updated: 23/Jan/13  Resolved: 18/Dec/09

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: None
Affects Version/s: 1.1
Fix Version/s: 1.2.1

Type: Improvement Priority: Minor
Reporter: Christian Ringele Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty

 Description   

In the template 'image.ftl' this if clause is always true on a binary image:
[#if image.title?? || image.copyright?? || image.description??]

This because the image name is in case of a binary returned as image.title.
Finally the image.caption is then rendered -> the file name is the caption.
=> the image name on a binary always appears below the image.


Generated at Mon Feb 12 07:26:36 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.