You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by cc...@apache.org on 2015/06/07 21:47:18 UTC

svn commit: r1684067 - /ofbiz/trunk/framework/widget/templates/foScreenMacroLibrary.ftl

Author: ccarlow
Date: Sun Jun  7 19:47:17 2015
New Revision: 1684067

URL: http://svn.apache.org/r1684067
Log:
Adding support for renderImage in framework/widget/templates/foScreenMacroLibrary.ftl

https://issues.apache.org/jira/browse/OFBIZ-6475

Modified:
    ofbiz/trunk/framework/widget/templates/foScreenMacroLibrary.ftl

Modified: ofbiz/trunk/framework/widget/templates/foScreenMacroLibrary.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/templates/foScreenMacroLibrary.ftl?rev=1684067&r1=1684066&r2=1684067&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/templates/foScreenMacroLibrary.ftl (original)
+++ ofbiz/trunk/framework/widget/templates/foScreenMacroLibrary.ftl Sun Jun  7 19:47:17 2015
@@ -63,7 +63,7 @@ under the License.
 <#macro renderHorizontalSeparator id style><fo:block><fo:leader leader-length="100%" leader-pattern="rule" rule-style="solid" rule-thickness="0.1mm" color="black"/></fo:block></#macro>
 <#macro renderLabel text id style><#if text?has_content><fo:block <#if style?has_content><@getFoStyle style/></#if> <#if id?has_content> id="${id}"</#if>>${text}</fo:block></#if></#macro>
 <#macro renderLink parameterList targetWindow target uniqueItemName linkType actionUrl id style name linkUrl text imgStr></#macro>
-<#macro renderImage src id style wid hgt border alt urlString></#macro>
+<#macro renderImage src id style wid hgt border alt urlString><fo:block><fo:external-graphic id="${id}" src="${src}" content-width="${wid}" content-height="${hgt}" scaling="non-uniform"/></fo:block></#macro>
 
 <#macro renderContentFrame></#macro>
 <#macro renderScreenletBegin id title collapsible saveCollapsed collapsibleAreaId expandToolTip collapseToolTip fullUrlString padded menuString showMore collapsed javaScriptEnabled></#macro>