On 26/12/2009, at 4:10 PM, ash...@apache.org wrote:
Author: ashish Date: Sat Dec 26 03:10:26 2009 New Revision: 893935URL: http://svn.apache.org/viewvc?rev=893935&view=rev Log:Conditional check. If "Internal Name" not found then check for "Product Name" and if both the values are missing then show the default message.Modified:ofbiz/trunk/applications/product/webapp/catalog/find/ miniproductlist.ftlModified: ofbiz/trunk/applications/product/webapp/catalog/find/ miniproductlist.ftlURL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/find/miniproductlist.ftl?rev=893935&r1=893934&r2=893935&view=diff= = = = = = = = ====================================================================== --- ofbiz/trunk/applications/product/webapp/catalog/find/ miniproductlist.ftl (original) +++ ofbiz/trunk/applications/product/webapp/catalog/find/ miniproductlist.ftl Sat Dec 26 03:10:26 2009@@ -23,7 +23,11 @@<#assign product = productCategoryMember.getRelatedOneCache("Product")><div><a href='<@ofbizUrl>EditProduct?productId=$ {product.productId}</@ofbizUrl>' class='buttontext'> - ${product.internalName?default("$ {uiLabelMap.CommonNo} ${uiLabelMap.ProductInternalName}")}+ <#if product.internalName?has_content> + ${product.internalName} + <#else>+ ${product.productName?default("$ {uiLabelMap.CommonNo} ${uiLabelMap.ProductInternalName} / $ {uiLabelMap.ProductProductName}")}
Hi AshishPlease remember that you shouldn't join labels together but instead make a new label.
Thanks Scott
+ </#if> </a> <div> <b>${product.productId}</b>
smime.p7s
Description: S/MIME cryptographic signature