Author: hansbak
Date: Sun May 29 02:43:01 2011 New Revision: 1128808 URL: http://svn.apache.org/viewvc?rev=1128808&view=rev Log: show new catalogbutton on the find screen, but not on the new catalog screen Modified: ofbiz/trunk/applications/product/widget/catalog/CatalogMenus.xml ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml Modified: ofbiz/trunk/applications/product/widget/catalog/CatalogMenus.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/catalog/CatalogMenus.xml?rev=1128808&r1=1128807&r2=1128808&view=diff ============================================================================== --- ofbiz/trunk/applications/product/widget/catalog/CatalogMenus.xml (original) +++ ofbiz/trunk/applications/product/widget/catalog/CatalogMenus.xml Sun May 29 02:43:01 2011 @@ -235,7 +235,7 @@ under the License. </menu-item> <menu-item name="CreateSeo" title="${uiLabelMap.ProductCatalogSeoCreate}"> <condition> - <if-compare operator="equals" value="ProductCatalog" field="tabButtonItem"/> + <not><if-empty field="prodCatalog"/></not> </condition> <link target="CreateSeoProdCatalog"> <parameter param-name="prodCatalogId" from-field="parameters.prodCatalogId"/> Modified: ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml?rev=1128808&r1=1128807&r2=1128808&view=diff ============================================================================== --- ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml (original) +++ ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml Sun May 29 02:43:01 2011 @@ -73,7 +73,7 @@ under the License. <widgets> <section> <condition> - <not><if-empty field="prodCatalogId"/></not> + <not><if-empty field="prodCatalog"/></not> </condition> <widgets> <include-menu name="CatalogTabBar" location="component://product/widget/catalog/CatalogMenus.xml"/> @@ -83,7 +83,14 @@ under the License. </container> </widgets> <fail-widgets> - <include-menu name="CatalogSubTabBar" location="component://product/widget/catalog/CatalogMenus.xml"/> + <section> + <condition> + <if-compare operator="not-equals" value="ProductCatalog" field="tabButtonItem"/> + </condition> + <widgets> + <include-menu name="CatalogSubTabBar" location="component://product/widget/catalog/CatalogMenus.xml"/> + </widgets> + </section> </fail-widgets> </section> <decorator-section-include name="body"/> |
Free forum by Nabble | Edit this page |