I will create the new label soon. Thanks for your comment. -- Ashish
On Mon, Dec 28, 2009 at 2:09 AM, Scott Gray <scott.g...@hotwaxmedia.com> wrote: > On 26/12/2009, at 4:10 PM, ash...@apache.org wrote: > >> Author: ashish >> Date: Sat Dec 26 03:10:26 2009 >> New Revision: 893935 >> >> URL: 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.ftl >> >> Modified: >> ofbiz/trunk/applications/product/webapp/catalog/find/miniproductlist.ftl >> URL: >> 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 Ashish > > Please remember that you shouldn't join labels together but instead make a > new label. > > Thanks > Scott > >> + </#if> >> </a> >> <div> >> <b>${product.productId}</b> >> >> > >