(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
This reverts commit 17eb2e4cf7.
It does not work when using <<target="javascript:........>>
I could change those cases but it's easier and safer to simply revert back to
target-type!
Thanks: James for report
Use importLibrary js function to load jstree and cookie js in ContentNav.ftl and CategoryTree.ftl.
Tested on
/content/control/navigateContent
/humanres/control/main
(OFBIZ-11587)
All files have been migrated to asciidoc format and help link now point
to the html file generated from the asciidoc files
In the global Help Docbook index tree, remove all points about
content and add a short page with a link to the new help
(OFBIZ-11376)
I could not find any references for this service in the code base, i.e. this
service has not been used anywhere, do we still want to keep it?
Thanks: Devanshu Vyas for report, Priya Sharma for the proposition and the fix
(OFBIZ-11230)
In the EditExample Form, the drop-down is populates with the Valid change status
only. So current status is not in the list and the status print in the drop-down
is the next authorized. I want to modify exampleName or exampleType, I go to
editExample and change what I want and validate. The problem is status is also
changed!
There are 12 other same or similar cases. For the first of them (in FinAccount)
there is the same bug: when I change FinAccount Name, status change too. If I
add current="first-in-list" in the tag drop-down it works
jleroux: Quote is a peculiar case due to OFBIZ-7337 which was a wrong fix
Thanks: Oliver for the analysis and the fix
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868545 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-11170)
Steps to reproduce
content/control/EditWebAnalyticsConfig?webSiteId=WebStoreClone
On that Web Analytics Type UiLabel is missing.
Thanks: Rahul Marjiwe
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1865883 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-11022)
Steps to regenerate:
Login into content
Select any website(Preferably CmsSite as it has pathAlias)
Click on pathAlias tab
Select any pathAlias to edit
See edit option is not available on screen, Create option is available which
is creating new pathAlias instead of edit.
Thanks: Pawan Verma
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1860141 13f79535-47bb-0310-9956-ffa450edef68
components
(OFBIZ-9905)
As the title says + removes now useless labels
Thanks: Aayush Jain for report, Sourabh Jain for the fix, Pierre Smits and
Rishi Solanki for comments
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1858291 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-10615)
Steps to Regenerate issue:
# Login to demo-trunk or demo-stable instance with details:
URL - [https://demo-trunk.ofbiz.apache.org/content/control/findForumGroups]
admin/ ofbiz OR
URl - [https://demo-stable.ofbiz.apache.org/content/control/createForumGroup]
admin/ ofbiz
# Go to Content > Forum and try to create new forum group.
# do not enter Forum Group Name and Description.
# Click on the Submit button.
Actual - System allowed the user to enter an empty forum group.
This issue is occurring at demo-trunk and demo-stable instance.
Expected - Empty Forum group should not be added. If the user tries to do this
s/he should not be allowed and proper validation error message should display.
Thanks: Sanjay Yadav
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846214 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9754)
1. Go to content -> websites
2. Find websites and select a website from the list.
3. Required field indicator for party id is missing from create web site parties,
direct link,
content/control/EditWebSiteParties?webSiteId=WebStorePos
Thanks: Rohit Rai
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809387 13f79535-47bb-0310-9956-ffa450edef68
1. Go to Content -> WebSites
2. Select a website from the list of sites.
3. click on content from the submenu
4. Content Id is a required parameter for the service, a required field indicator must be placed on the form.
Thanks, Rohit Rai for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809379 13f79535-47bb-0310-9956-ffa450edef68
add content role.
(OFBIZ-9749)
1. Go to Content.
2. Find Content, select a content from the list.
3. Click on roles from the submenu
Content Id, Role Type Id and party Id are required fields, required field
indicators are missing from the UI.
createContentRole service throws an error if the fields are missing.
Here is the link to the form,
https://demo-trunk.ofbiz.apache.org/content/control/addContentRole
Thanks: Rohit Rai
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809377 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9644)
I found various instances where the mimeTypeId is displayed in HTML
encoded pattern over UI.
jleroux: this also removes 2 duplicated fields in AddLayout form
Thanks: Ankit Joshi
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1806951 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9644)
I found various instances where the mimeTypeId is displayed in HTML
encoded pattern over UI.
jleroux: this also removes 2 duplicated fields in AddLayout form
Thanks: Ankit Joshi
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1806947 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9621)
Steps to Regenerate –
1) Go to Content/DataResourceSetup and select File Ext tab.
2) Create or Update File ext with Mime Types available in the drop-down.
Result: File Ext created or updated with selected Mime Type but Mime Type
displayed in HTML Encoded pattern.
This issue also exists on Create DataResource page.
jleroux: checking with trunk demo I did not find it on "Create DataResource page"
(content/control/EditDataResource) nor in the Search options) of
"Find Data Resource" (content/control/findDataResource)
But in the list of this find page and also in Navigate for template
(content/control/navigateDataResource)
Anyway the patch fixed all the cases I found.
I think there are more cases like that but I can't remember where.
Thanks: Ankit Joshi
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1806036 13f79535-47bb-0310-9956-ffa450edef68
screen
Improved:
(OFBIZ-7850)
1. Go to Find Forum group list page
https://localhost:8443/content/control/findForumGroups
2. Select one of the Forum from the available forum list.
3. On this Forum Group page, In Add Forum and List Forums section, the UI label
From Date Time displayed "From Date & Time", it should be corrected to
display From Date Time.
jleroux: patch obsolete, I had to change things by hand
Thanks: Gopal Yadav
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1791473 13f79535-47bb-0310-9956-ffa450edef68
Find Content page
(OFBIZ-9279)
How to reproduce :
1. Log in the Content component
2. Go to the Content tab. https://localhost:8443/content/control/findContent
3. In the search form, open the lookup of the field ' Owner Content Id '
4. Click on any of the table header links to sort the table. Results will be
displayed on a new unstyled window closing the Lookup dialog.
Problem:
1. Lookup dialog for ownerContentId uses "ListLookupContent" form to list
Content records.
2. "ListLookupContent" form extends "ListContent" form for all the fields.
3. Sort-field is set to true in "ListContent" form for all the fields.
4. Sort-field adds <a> hyperlink to "LookupContent" .
5. When clicked <a> link it moves to a new page and doesn't renders the response
in the Lookup dialog.
Solution:
First of all it is a lookup to select ownerContentId so as the pattern followed
in other lookups in OFBiz it should not have any sort-fields.
To set it false, it should be overridden. If all fields needs to be overridden
it is better not to extend "ListContent" form and add these fields right away.
Apart from that added 'header-row-style="header-row-2"' to form.
Thanks: Aditya Sharma
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1789874 13f79535-47bb-0310-9956-ffa450edef68
Find Content page
(OFBIZ-9280)
How to reproduce :
1. Log in the Content component
2. Go to the Content tab. https://localhost:8443/content/control/findContent
3. In the search form, open the lookup of the field ' Data Resource Id '
4. Click on any of the table header links to sort the table. Results will be
displayed on a new unstyled window closing the Lookup dialog.
Problem:
Problem:
1. Lookup dialog for dataResourceId uses "ListLookupDataResource" form to list
Data Resource records.
2. "ListLookupDataResource" form extends "ListDataResource" form for all the
fields.
3. Sort-field is set to true in "ListDataResource" form for all the fields.
4. Sort-field adds <a> hyperlink to "LookupResource" .
5. When clicked <a> link it moves to a new page and doesn't renders the response
in the Lookup dialog.
Solution:
First of all it is a lookup to select DataResourceId so as the pattern followed
in other lookups in OFBiz it should not have any sort-fields.To set it false,
it should be overridden. If all fields needs to be overridden it is better not
to extend "ListDataResource" form and add these fields right away.
Apart from that added 'widget-style="smallSubmit"' to dataResourceId according
to the uniform pattern followed.
jleroux: I added the header-row-style="header-row-2" style
Thanks: Aditya Sharma
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1789863 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7759)
How to reproduce :
- Log in the Content component
- Go to the Content tab
- In the search form, open the lookup of the field ' Owner Content Id '
- Click on the search button
- In the result list, click on a button link in the column 'Data Resource Id'
- The form to edit the Content will be displayed (a whole OFBiz seems to be
accessible from this new page)
- Close the lookup.
- Try to reopen it, it doesn't show anything anymore.
Problem:
1. Lookup dialog for ownerContentId uses "ListLookupContent" form to list
Content records.
2. "ListLookupContent" form extends "ListContent" form for all the fields.
3. As fields dataResourceId and ownerContentId are extended fields they creates
a link to Edit pages.
Solution:
First of all it is a lookup to select ownerContentId so as the pattern followed
in other lookups in OFBiz it should not have any links to Edit page. If links
are removed there will not be the problem as well.
Apart from that added 'widget-style="smallSubmit"' to contentId according to
the uniform pattern followed.
Link to edit ownerContentId shows contentId in description rather than
ownerContentId in "ListLookupContent" form , updated that too.
Thanks: Florian Montalbano for report and Aditya Sharma for patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1789665 13f79535-47bb-0310-9956-ffa450edef68
I did not even notice I committed this bunch of WIP stuff. I guess I clicked
somewhere while my machine was too buzy
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1781367 13f79535-47bb-0310-9956-ffa450edef68
I did not even notice I committed this bunch of WIP stuff. I guess I clicked
somewhere while my machine was too buzy
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1781366 13f79535-47bb-0310-9956-ffa450edef68