A basic implementation of a help system, based on work contributed by Bruno Busco - https://issues.apache.org/jira/browse/OFBIZ-1750.
There is an example of how it is used in the EditExample screen of the Example component. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@663378 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -49,6 +49,9 @@ under the License.
|
||||
<menu-item name="EditExampleFeatureAppls" title="${uiLabelMap.ExampleFeatures}">
|
||||
<link target="EditExampleFeatureAppls?exampleId=${exampleId}"/>
|
||||
</menu-item>
|
||||
<menu-item name="EditExampleHelp" title="${uiLabelMap.CommonHelp}">
|
||||
<link target="help?topic=EditExampleHelp" target-window="_blank"/>
|
||||
</menu-item>
|
||||
</menu>
|
||||
|
||||
<menu name="EditExampleFeature" default-selected-style="selected" type="simple"
|
||||
|
||||
@@ -106,7 +106,6 @@ under the License.
|
||||
<screen name="EditExampleFeatureAppls">
|
||||
<section>
|
||||
<actions>
|
||||
|
||||
<set field="layoutSettings.javaScripts[+0]" value="/images/prototypejs/scriptaculous.js" global="true"/>
|
||||
<set field="layoutSettings.javaScripts[+0]" value="/images/prototypejs/prototype.js" global="true"/>
|
||||
<set field="layoutSettings.styleSheets[+0]" value="/images/prototypejs/scriptaculouscontrols.css" global="true"/>
|
||||
@@ -125,4 +124,18 @@ under the License.
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="help">
|
||||
<section>
|
||||
<actions>
|
||||
<property-map resource="ExampleHelpUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<set field="layoutSettings.companyName" from-field="uiLabelMap.ExampleCompanyName" global="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-screen name="help" location="component://common/widget/CommonScreens.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
</screens>
|
||||
|
||||
Reference in New Issue
Block a user