[
https://issues.apache.org/jira/browse/OFBIZ-10601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16929219#comment-16929219 ]
Nicolas Malin commented on OFBIZ-10601:
---------------------------------------
Hello,
With [~mleila] we tried an other idea to use the theme system.
We add a new attribute on webapp definition *app-shortcut-screen* :
{code:java}
<webapp name="catalog"
title="Catalog"
description="CatalogComponentDescription"
server="default-server"
location="webapp/catalog"
base-permission="OFBTOOLS,CATALOG"
app-shortcut-screen="component://product/widget/catalog/CatalogScreens.xml#ShortcutApp"
mount-point="/catalog"/>{code}
The idea is to define a new purpose screen *Shortcut* that can contains what you want to define a webapp on mouse over. With this screen you can load a menu, a search, a complex description and use all screen powerfull to resolve what displaying and support by theming
{code:java}
<screen name="ShortcutApp">
<section>
<actions>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
</actions>
<widgets>
<decorator-screen name="ShortcutDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<include-menu name="CatalogShortcutAppBar" location="component://product/widget/catalog/CatalogMenus.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>{code}
Each component are self-contained to define how it display its shortcut displaying without framework change or know other component
To try, just apply [^OFBIZ-10601.patch] and use the bluelight theme.
> Add a framework method to get main webapp menu with the webapp name
> -------------------------------------------------------------------
>
> Key: OFBIZ-10601
> URL:
https://issues.apache.org/jira/browse/OFBIZ-10601> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Reporter: Julien NICOLAS
> Assignee: Nicolas Malin
> Priority: Minor
> Attachments: HomeMenu.png, OFBIZ-10601.patch, webAppMainMenu.png
>
>
> To improve theme management and provide better tools for new themes, I would like to have a method that return the main menu of a webApp with the webApp name.
> The purpose is to have new theme with smarter UI like example in attached screenshot.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)