[
http://jira.magnolia-cms.com/browse/MGNLSTK-785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Boris Kraft updated MGNLSTK-785:
--------------------------------
Summary: footerAbout element can't render images without title (was:
Footer about element can't render images without title)
> footerAbout element can't render images without title
> -----------------------------------------------------
>
> Key: MGNLSTK-785
> URL: http://jira.magnolia-cms.com/browse/MGNLSTK-785
> Project: Magnolia Standard Templating Kit
> Issue Type: Bug
> Components: paragraphs
> Affects Versions: 1.3.5, 1.4.4
> Reporter: Grégory Joseph
> Assignee: Christian Ringele
> Fix For: 1.3.x, 1.4.5
>
>
> In {{/templating-kit/paragraphs/footer/footerAbout.ftl}}, the following can't
> work for assets that don't have a title:
> {code}
> [#assign imageAlt = image.title!image.@name]
> {code}
> {{image}} in this case is an instance of
> {{info.magnolia.module.templatingkit.dam.Asset}}; a dms asset "always" has a
> title (since the title property is automatically filled in on creation in the
> tree), while an uploaded asset never does. The expression above thus falls
> back to {{@name}}, which can't be interpreted either, as there is no such
> property ({{image}} is an {{Asset}}, not a node).
> Trivial fix:
> {code}
> [#assign imageAlt = image.title!image.name]
> {code}
--
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
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------