[ http://jira.magnolia-cms.com/browse/MGNLSTK-785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Ringele updated MGNLSTK-785: -------------------------------------- Fix Version/s: 1.3.6 (was: 1.3.x) (was: 1.4.5) > footerAbout template script 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.6 > > > 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 Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com> ----------------------------------------------------------------