Author: buscob
Date: Wed Nov 25 11:04:41 2009
New Revision: 884034
URL:
http://svn.apache.org/viewvc?rev=884034&view=revLog:
Moved the "CatalogTabBar" Menus from the "body" decorator-section to the "pre-body" decorator section in the CommonCatalogDecorator.
This makes better the rendering of themes such as Dropping Crumbs.
Modified:
ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml
Modified: ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml?rev=884034&r1=884033&r2=884034&view=diff==============================================================================
--- ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml (original)
+++ ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml Wed Nov 25 11:04:41 2009
@@ -134,6 +134,20 @@
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="pre-body">
+ <section>
+ <!-- do check for CATALOG, _VIEW permission -->
+ <condition>
+ <and>
+ <if-has-permission permission="CATALOG" action="_VIEW"/>
+ <not><if-empty field="prodCatalogId"/></not>
+ </and>
+ </condition>
+ <widgets>
+ <include-menu name="CatalogTabBar" location="component://product/widget/catalog/CatalogMenus.xml"/>
+ </widgets>
+ </section>
+ </decorator-section>
<decorator-section name="body">
<section>
<!-- do check for CATALOG, _VIEW permission -->
@@ -141,15 +155,6 @@
<if-has-permission permission="CATALOG" action="_VIEW"/>
</condition>
<widgets>
- <section>
- <condition><not><if-empty field="prodCatalogId"/></not></condition>
- <widgets>
- <container style="no-clear">
- <include-menu name="CatalogTabBar" location="component://product/widget/catalog/CatalogMenus.xml"/>
- </container>
- </widgets>
- </section>
-
<container>
<link target="EditProdCatalog" text="${uiLabelMap.ProductNewProdCatalog}" style="buttontext"/>
</container>