Commit Graph
20 Commits
Author SHA1 Message Date
Nicolas Malin 7165768251 Implemented: Add a framework method to get main webapp menu with the webapp name
(OFBIZ-10601)

To improve theme management and provide better tools for new themes, we implement a method to obtain the main menu of a webapp.
Instead of just managing a menu, we extend the functionality by offering a method to expose a summary of the webapp, to simplify the navigation.

For this we add a new attribute on webapp definition app-shortcut-screen :

    <webapp name="mywebapp"
            ...
            app-shortcut-screen="component://mycomponent/widget/CommonScreens.xml#ShortcutApp"
            ...
    />

The idea is to define a new purpose screen *Shortcut* that contains what defines a webapp when an action or navigation has been requested. With this screen you can load a menu, a search, a complex description and use all screen powerfulness to resolve what displaying and support by theming

    <screen name="ShortcutApp">
        <section>
            <actions>
                <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
            </actions>
            <widgets>
                <decorator-screen name="ShortcutDecorator" location="component://common/widget/CommonScreens.xml">
                    <decorator-section name="body">
                        <include-menu name="MyShortcutAppBar" location="component://mycomponent/widget/CommonMenus.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

Each component are self-sufficient to define what shortcuts to display without framework change or knowledge about other component.
Each theme can implement and customize the display rendering at will.

To illustrate an example of implementation we set sub menu for each webapp defined on applications and exploit it on bluelight theme.

Thanks for Dennis Balkir, Jacques Leroux, Leila Mekika and Julien Nicolas for their involvement
2021-01-15 08:56:23 +01:00
Jacques Le Roux c8ba932772 Fixes a "typo" in last commit for "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
We used targetNamespace (should only be used in schema) instead of xsi:schemaLocation



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749634 13f79535-47bb-0310-9956-ffa450edef68
2016-06-22 05:58:26 +00:00
Jacques Le Roux 89212904bd Completes and finish "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
This is the 2nd step: puts back the original names, so it will be transparent for remaining references in xml catalogs, Java code, etc.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749489 13f79535-47bb-0310-9956-ffa450edef68
2016-06-21 11:37:47 +00:00
Jacques Le Roux 4931db1ed9 Completes and finish "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061 by replacing xsd files references in xml files by -ns.xsd files and removing the concerned xsd files
This is a 1st step, in a 2nd I will put back the original names, so it will be transparent for remaining reference in xml catalogs, Java code, etc.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749488 13f79535-47bb-0310-9956-ffa450edef68
2016-06-21 11:14:16 +00:00
Adam Heath ac2299c50e Fix a bunch of no final newline issues.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965918 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:15:21 +00:00
Bruno Busco 0cc834344c Removed the word "Application" from the Application menu title (OFBIZ-3016)
At this stage I did this for the primary applications only.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823833 13f79535-47bb-0310-9956-ffa450edef68
2009-10-10 09:27:30 +00:00
Marco Risaliti b999a6e2c8 Some cleaning into Marketing component and some missing italian translations (Part of OFBIZ-1780)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@733943 13f79535-47bb-0310-9956-ffa450edef68
2009-01-12 22:36:38 +00:00
Jacopo Cappellato a91db16bb5 Applied patch contributed by Bilgin Ibryam in OFBIZ-1877: definitio of a common menu that can be extended by the application (the menu already contains the main and login/logout items).
A few applications have been updated to use it as well.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@676959 13f79535-47bb-0310-9956-ffa450edef68
2008-07-15 16:42:20 +00:00
Bilgin Ismet Ibryam 896d96bdd5 Replaced col-right style with opposed from my previous commit and other places. Thanks to Adrian for pointing out.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@668202 13f79535-47bb-0310-9956-ffa450edef68
2008-06-16 15:43:11 +00:00
Vikas Mayur e76571321f Patch from Pranay Pandey for Menu Item highlight fix for Marketing component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660156 13f79535-47bb-0310-9956-ffa450edef68
2008-05-26 10:29:33 +00:00
Marco Risaliti 309bb5fd07 Segment/Tracking Code/Report forms (ftl/widgets screen) has now the same look and feel (Part of issue OFBIZ-1588)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@614356 13f79535-47bb-0310-9956-ffa450edef68
2008-01-22 22:18:56 +00:00
David E. Jones 7d70c41c12 Did a big search/replace to change all xsd file refs from www.ofbiz.org to ofbiz.apache.org
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539504 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 15:47:14 +00:00
Jacopo Cappellato b08baf607e Small layout fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@519270 13f79535-47bb-0310-9956-ffa450edef68
2007-03-17 09:28:26 +00:00
Jacopo Cappellato 34fe8c22b0 Applied patches from Anil K Patel (OFBIZ-798, OFBIZ-799, OFBIZ-800, OFBIZ-801, OFBIZ-802) to clean up redundant style settings from Forms files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516672 13f79535-47bb-0310-9956-ffa450edef68
2007-03-10 09:49:19 +00:00
Jacopo Cappellato 311ca7c08c Applied patch from Adrian Crum (OFBIZ-671) to refactor form, menu, tree widget styles management (now mostly all the styles are defined externally using css): this is still a work in progress.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@514099 13f79535-47bb-0310-9956-ffa450edef68
2007-03-03 08:14:07 +00:00
Jacques Le Roux dad67935f7 A (large) patch from Scott Gray "Update ASL header" (https://issues.apache.org/jira/browse/OFBIZ-637).
I put also some svn:ignore for shark build and lib diretories and assetmaint/build 

I did some by hand lately, too much to remember. They were files with old header but without copyright. A 1st attempt I suppose, will have to check this after this commit.

I add some problems to commit this patch in one piece because it's so huge (specially with Eclipse I had to turn to Tortoise) !

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499486 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 17:15:54 +00:00
Jacopo Cappellato 2b032a9e1f Big i18n patch from Marco Risaliti.
OFBIZ-393


git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@466018 13f79535-47bb-0310-9956-ffa450edef68
2006-10-20 07:16:54 +00:00
Si Chen 91118fcc28 Fixed contact list forms: Pagination fixed for ContactList and ContactListCommEvent. Find form added for ContactLists, which is now the first thing the user sees when clicking [Contact Lists]. Removed some duplicate controller entries.
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@450651 13f79535-47bb-0310-9956-ffa450edef68
2006-09-28 00:41:38 +00:00
Jacopo Cappellato 6514683412 Conversion from MIT to ASL2.0 for all the files of the marketing component.
Many thanks to Ashish Vijaywargiya for the patch (Apache OFBIZ-87).

git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@422379 13f79535-47bb-0310-9956-ffa450edef68
2006-07-16 05:50:40 +00:00
David E. Jones 94fe6d1cda Initial OFBiz import from revision 7923 of the old svn.ofbiz.org SVN repository.
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@418498 13f79535-47bb-0310-9956-ffa450edef68
2006-07-01 19:05:20 +00:00