Author: buscob
Date: Sat Nov 14 16:13:11 2009
New Revision: 836202
URL:
http://svn.apache.org/viewvc?rev=836202&view=revLog:
Dropping crumbs theme is now rendered well on Portal pages also.
Portal pages do not set headerItem variable to a ManuItem name value. This does not allow dropping crumbs theme to show the portal page name on the last part of the menu bar like all other pages. A solution still to be found.
Modified:
ofbiz/trunk/themes/droppingcrumbs/includes/appbarClose.ftl
ofbiz/trunk/themes/droppingcrumbs/includes/appbarOpen.ftl
Modified: ofbiz/trunk/themes/droppingcrumbs/includes/appbarClose.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/themes/droppingcrumbs/includes/appbarClose.ftl?rev=836202&r1=836201&r2=836202&view=diff==============================================================================
--- ofbiz/trunk/themes/droppingcrumbs/includes/appbarClose.ftl (original)
+++ ofbiz/trunk/themes/droppingcrumbs/includes/appbarClose.ftl Sat Nov 14 16:13:11 2009
@@ -17,14 +17,13 @@
under the License.
-->
<#assign appModelMenu = Static["org.ofbiz.widget.menu.MenuFactory"].getMenuFromLocation(applicationMenuLocation,applicationMenuName,delegator,dispatcher)>
-
- <#if headerItem?exists>
- <#if headerItem!="main">
- <div class="breadcrumbs-sep">
- ${appModelMenu.getModelMenuItemByName(headerItem).getTitle(context)}
- </div>
- </#if>
- </#if>
+<#if appModelMenu.getModelMenuItemByName(headerItem)?exists>
+ <#if headerItem!="main">
+ <div class="breadcrumbs-sep">
+ ${appModelMenu.getModelMenuItemByName(headerItem).getTitle(context)}
+ </div>
+ </#if>
+</#if>
</div>
</div>
<div class="clear">
Modified: ofbiz/trunk/themes/droppingcrumbs/includes/appbarOpen.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/themes/droppingcrumbs/includes/appbarOpen.ftl?rev=836202&r1=836201&r2=836202&view=diff==============================================================================
--- ofbiz/trunk/themes/droppingcrumbs/includes/appbarOpen.ftl (original)
+++ ofbiz/trunk/themes/droppingcrumbs/includes/appbarOpen.ftl Sat Nov 14 16:13:11 2009
@@ -24,8 +24,15 @@
<#assign displayApps = Static["org.ofbiz.base.component.ComponentConfig"].getAppBarWebInfos(ofbizServerName, "main")>
<#assign displaySecondaryApps = Static["org.ofbiz.base.component.ComponentConfig"].getAppBarWebInfos(ofbizServerName, "secondary")>
+<#assign appModelMenu = Static["org.ofbiz.widget.menu.MenuFactory"].getMenuFromLocation(applicationMenuLocation,applicationMenuName,delegator,dispatcher)>
+<#if appModelMenu.getModelMenuItemByName(headerItem)?exists>
+ <#if headerItem!="main">
+ <#assign show_last_menu = true>
+ </#if>
+</#if>
+
<div class="tabbar">
- <div class="breadcrumbs<#if headerItem?exists><#if headerItem!="main"> menu_selected</#if></#if>">
+ <div class="breadcrumbs<#if show_last_menu?exists> menu_selected</#if>">
<div id="main-navigation">
<h2>${uiLabelMap.CommonApplications}</h2>
<ul>