Author: jaredmorgs
Date: 2013-02-03 23:36:06 -0500 (Sun, 03 Feb 2013)
New Revision: 9111
Modified:
epp/docs/branches/6.0/Developer_Guide/en-US/Revision_History.xml
epp/docs/branches/6.0/Developer_Guide/en-US/chapter-4-GDG_Portal_Development.xml
epp/docs/branches/6.0/Developer_Guide/en-US/images/Kinds+of+Navigation.png
Log:
Changes incorporated for
https://docs.jboss.org/author/display/GTNPORTAL35/Custom+Navigation+and+P... in Section
4.1.1.4, ?\226?\128?\156Custom Navigation and Pages?\226?\128?\157. Heavy nesting in this
section caused me to restructure some of the deeply nested sections into examples. Also
updated a very outdated screenshot using shutter to annotate.
Modified: epp/docs/branches/6.0/Developer_Guide/en-US/Revision_History.xml
===================================================================
--- epp/docs/branches/6.0/Developer_Guide/en-US/Revision_History.xml 2013-02-01 15:13:00
UTC (rev 9110)
+++ epp/docs/branches/6.0/Developer_Guide/en-US/Revision_History.xml 2013-02-04 04:36:06
UTC (rev 9111)
@@ -5,6 +5,20 @@
<simpara>
<revhistory>
<revision>
+ <revnumber>6.0.0-11</revnumber>
+ <date>Mon Feb 4 2013</date>
+ <author>
+ <firstname>Jared</firstname>
+ <surname>Morgan</surname>
+ <email/>
+ </author>
+ <revdescription>
+ <simplelist>
+ <member>Changes incorporated for
https://docs.jboss.org/author/display/GTNPORTAL35/Custom+Navigation+and+P... in <xref
linkend="Custom_Navigation_And_Pages"/>. Heavy nesting in this section caused
me to restructure some of the deeply nested sections into examples.</member>
+ </simplelist>
+ </revdescription>
+ </revision>
+ <revision>
<revnumber>6.0.0-10</revnumber>
<date>Fri Feb 1 2013</date>
<author>
Modified:
epp/docs/branches/6.0/Developer_Guide/en-US/chapter-4-GDG_Portal_Development.xml
===================================================================
---
epp/docs/branches/6.0/Developer_Guide/en-US/chapter-4-GDG_Portal_Development.xml 2013-02-01
15:13:00 UTC (rev 9110)
+++
epp/docs/branches/6.0/Developer_Guide/en-US/chapter-4-GDG_Portal_Development.xml 2013-02-04
04:36:06 UTC (rev 9111)
@@ -285,14 +285,12 @@
</para>
<example id="exam-DefaultStylesheetCss">
<title>DefaultStylesheet.css</title>
- <programlisting>
-051. .UIHomePagePortlet .TRContainer .DotLine {
-052. background: url("DefaultSkin/background/Line.gif") no-repeat
-2px top;
-053. height: 1px;
-054. width: 182px;
-055. margin: 7px auto;
-056. }
-</programlisting>
+ <programlisting>.UIHomePagePortlet .TRContainer .DotLine {
+ background: url("DefaultSkin/background/Line.gif") no-repeat -2px
top;
+ height: 1px;
+ width: 182px;
+ margin: 7px auto;
+}</programlisting>
</example>
<note>
<para>For further information about creating portlets skins, refer
to<citetitle> Skinning the Portal</citetitle> in the JBoss Portal Platform
<citetitle>Reference Guide</citetitle>.</para>
@@ -301,117 +299,125 @@
</section>
<section id="Custom_Navigation_And_Pages">
<title>Custom Navigation and Pages</title>
+ <remark>Source:
https://docs.jboss.org/author/display/GTNPORTAL35/Custom+Navigation+and+P...
<para>
This section mentions code from the Portal Extension Examples available for
download from <ulink
url="https://access.redhat.com/"/> as part of your
JBoss Portal Platform subscription.
</para>
- <para>In Portal Extension quickstart, we have added a couple of navigation
nodes and pages to the ones available in the default GateIn Portal
installation.</para>
<section id="portal-configuration-xml">
<title>portal-configuration.xml</title>
- <para>
- In Portal Extension quickstart, this configuration file is located in
-
<code>war/src/main/webapp/WEB-INF/conf/sample-ext/portal</code>
- directory. It is the starting point of the navigation customization. We
will not say more about this file here as there is usually no need to change it. Please
refer to
- <ulink
url="https://docs.jboss.org/author/pages/viewpage.action?pageId=5426...
Navigation Configuration</ulink>
- section of GateIn Portal Reference Guide for more information.
+ <para>This configuration file is located in
+
<filename>war/src/main/webapp/WEB-INF/conf/sample-ext/portal</filename>
+ directory of the Portal Extension quickstart. It is the starting point for
navigation customization. Generally, there is no need to change any configuration in this
file, although it is useful to know of it's location.</para>
+ <para>For more information about
<filename>portal-configuration.xml</filename>, refer to the "Portal
Navigation Configuration" section in the JBoss Portal Platform
<citetitle>Reference Guide</citetitle>.
</para>
</section>
- <section id="Three_Kinds_Of_Navigation">
- <title>Three kinds of Navigation</title>
- <para>Rather than using too many words to explain what and why, let us
look at the following image:</para>
- <figure>
- <title>TODO InformalFigure image title empty</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/Kinds+of+Navigation.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- <section id="Adding_Navigation_Node_Site_Navigation">
+ </section>
+ <section id="Three_Kinds_Of_Navigation">
+ <title>Navigation Node Types</title>
+ <para>There are three types of navigation nodes, as described in <xref
linkend="fig-Types_of_Navigation_Nodes"/> :</para>
+ <figure id="fig-Types_of_Navigation_Nodes">
+ <title>Types of Navigation Nodes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/Kinds+of+Navigation.png"/>
+ </imageobject>
+ <textobject>
+ <para>The JBoss Portal Platform home screen, with the Home tab, Group
menu, and Dashboard menu called-out.</para>
+ </textobject>
+ </mediaobject>
+ </figure>
+ <variablelist>
+ <varlistentry>
+ <term>1 (Site)</term>
+ <listitem>
+ <para>Navigation nodes of the current site.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>2 (User Group)</term>
+ <listitem>
+ <para>Navigation nodes of <emphasis>user
groups</emphasis> which the current user is a member.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>3 (User)</term>
+ <listitem>
+ <para>Navigation nodes of the current user.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ <example id="exam-Adding_Navigation_Node_Site">
<title>Adding a Navigation Node to a Site Navigation</title>
- <para>
- Let us have a look at
+ <para>The file
<code>war/src/main/webapp/WEB-INF/conf/sample-ext/portal/portal/classic/navigation.xml</code>
- . Note that in this path,
- <emphasis role="italics">classic</emphasis>
- is the name of the site the navigation of which we are which we want to
define.
+contains the
+ <emphasis role="italics">classic</emphasis> site
navigation which can be modified.
</para>
- <example>
- <title>Site-wide navigation.xml</title>
- <programlisting>
-19. <node-navigation
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-20.
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_3
http://www.gatein.org/xml/ns/gatein_objects_1_3"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_3"...
-21. <!-- Priority has no significance in site navigations. But it is required.
See GTNPORTAL-2751 -->
-22. <priority>1</priority>
-23.
-24. <!--
-25. In this file, we are adding a navigation node to the navigation of the site
called "classic".
-26. The site-wide navigation is used e.g. in NavigationPortlet.
-27. Visibility of navigation nodes depends on <access-permissions>
set in the sibling pages.xml file.
-28. See also portal.configuration section of the file
../../portal-configuration.xml.
-29. -->
-30. <page-nodes>
-31. <node>
-32. <name>page-just-added</name>
-33. <!--
-34. #{portal.extension.justAddedPage} is place holder for an
internationalized string.
-35. See WEB-INF/classes/locale/navigation/portal/classic_en.properties
-36. -->
-37.
<label>#{portal.extension.justAddedPage}</label>
-</programlisting>
- </example>
- <para>
- In this file, we have added
+ <programlisting language="XML"><node-navigation
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_3
http://www.gatein.org/xml/ns/gatein_objects_1_3"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_3"...
+ <!-- Priority has no significance in site navigations. But it is required.
See GTNPORTAL-2751 -->
+ <priority>1</priority>
+
+ <!--
+ In this file, we are adding a navigation node to the navigation of the site
called "classic".
+ The site-wide navigation is used e.g. in NavigationPortlet.
+ Visibility of navigation nodes depends on <access-permissions> set
in the sibling pages.xml file.
+ See also portal.configuration section of the file
../../portal-configuration.xml.
+ -->
+ <page-nodes>
+ <node>
+ <name>page-just-added</name>
+ <!--
+ #{portal.extension.justAddedPage} is place holder for an
internationalized string.
+ See WEB-INF/classes/locale/navigation/portal/classic_en.properties
+ -->
+
<label>#{portal.extension.justAddedPage}</label>
+ </node>
+ </page-nodes>
+</node-navigation></programlisting>
+ <para>By appending the
<code>page-just-added</code>
- navigation node into the portal navigation. It can be seen in the
navigation bar.
+ navigation node into the portal navigation, the new site navigation node is
now visible in the navigation bar.
</para>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/navigation-bar.png"/>
+ </imageobject>
+ <textobject>
+ <para>Navigation menu, with Page Just Added now visible as a site
navigation option.</para>
+ </textobject>
+ </mediaobject>
<para>
- <figure>
- <title>TODO InformalFigure image title empty</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/navigation-bar.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </para>
- <para>
The
<code>page-just-added</code>
navigation node refers to
<code>portal::classic::justAddedPage</code>
- which we define in
+ which is defined the
<code>pages.xml</code>
- file located in the same directory as the above
- <code>navigation.xml</code>
- .
+ file located in the same directory as the
+ <code>navigation.xml</code> file.
</para>
- <example>
- <title>Site-wide pages.xml</title>
- <programlisting>
-19. <page-set
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_3
http://www.gatein.org/xml/ns/gatein_objects_1_3"
-20.
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_3"...
-21. <page>
-22. <name>justAddedPage</name>
-23. <title>Page Just Added</title>
-24. <!-- This page and any navigation nodes refering to it will be visible
to all visitors (signed in or anonymous). -->
-25.
<access-permissions>Everyone</access-permissions>
-26.
<edit-permission>*:/platform/administrators</edit-permission>
-27. <portlet-application>
-28. <portlet>
-29.
<application-ref>gatein-portal-extension</application-ref>
-30.
<portlet-ref>JustAddedPortlet</portlet-ref>
-31. </portlet>
-32. <title>Just Added Portlet</title>
-33.
<access-permissions>Everyone</access-permissions>
-34. <show-info-bar>false</show-info-bar>
-35.
<show-application-state>false</show-application-state>
-36.
<show-application-mode>false</show-application-mode>
-37. </portlet-application>
-38. </page>
-39. </page-set>
-</programlisting>
- </example>
+ <programlisting language="XML"><page-set
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_3
http://www.gatein.org/xml/ns/gatein_objects_1_3"
+
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_3"...
+ <page>
+ <name>justAddedPage</name>
+ <title>Page Just Added</title>
+ <!-- This page and any navigation nodes refering to it will be visible to
all visitors (signed in or anonymous). -->
+ <access-permissions>Everyone</access-permissions>
+
<edit-permission>*:/platform/administrators</edit-permission>
+ <portlet-application>
+ <portlet>
+
<application-ref>gatein-portal-extension</application-ref>
+ <portlet-ref>JustAddedPortlet</portlet-ref>
+ </portlet>
+ <title>Just Added Portlet</title>
+
<access-permissions>Everyone</access-permissions>
+ <show-info-bar>false</show-info-bar>
+
<show-application-state>false</show-application-state>
+
<show-application-mode>false</show-application-mode>
+ </portlet-application>
+ </page>
+</page-set></programlisting>
<para>
Note that
<code>page-just-added</code>
@@ -421,42 +427,35 @@
<code>Everyone</code>
in the above file.
</para>
- </section>
- <section id="Adding_Navigation_Node_Group_Navigation">
+ </example>
+ <example id="exam-Adding_Navigation_Node_Group">
<title>Adding a Navigation Node to a Group Navigation</title>
<para>
To add a new navigation node visible to the members of
<code>/platform/administrators</code>
- group we need to create a
- <code>navigation.xml</code>
+ group, create a
<code>navigation.xml</code>
file located in
<code>war/src/main/webapp/WEB-INF/conf/sample-ext/portal/group/platform/administrators/navigation.xml</code>
- . Note that the name of the user group
- <code>/platform/administrators</code>
- is a part of the path.
+ . The name of the user group
+ <code>/platform/administrators</code> forms part of the path.
</para>
- <example>
- <title>navigation.xml of /platform/administrators group</title>
- <programlisting>
-19. <node-navigation
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-20.
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_3
http://www.gatein.org/xml/ns/gatein_objects_1_3"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_3"...
-21. <!-- Priority is currently ignored for importMode merge. But it is
required. See GTNPORTAL-2751 -->
-22. <priority>1</priority>
-23.
-24. <page-nodes>
-25. <node>
-26. <name>admins-sitemap</name>
-27. <!--
-28. #{platform.administrators.adminsSitemap} is place holder for an
internationalized string.
-29. See
WEB-INF/classes/locale/navigation/group/platform/administrators_en.properties
-30. -->
-31.
<label>#{platform.administrators.adminsSitemap}</label>
-32.
<page-reference>group::/platform/administrators::adminsSitemap</page-reference>
-33. </node>
-34. </page-nodes>
-35. </node-navigation>
-</programlisting>
- </example>
+ <programlisting><node-navigation
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_3
http://www.gatein.org/xml/ns/gatein_objects_1_3"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_3"...
+ <!-- Priority is currently ignored for importMode merge. But it is required.
See GTNPORTAL-2751 -->
+ <priority>1</priority>
+
+ <page-nodes>
+ <node>
+ <name>admins-sitemap</name>
+ <!--
+ #{platform.administrators.adminsSitemap} is place holder for an
internationalized string.
+ See
WEB-INF/classes/locale/navigation/group/platform/administrators_en.properties
+ -->
+
<label>#{platform.administrators.adminsSitemap}</label>
+
<page-reference>group::/platform/administrators::adminsSitemap</page-reference>
+ </node>
+ </page-nodes>
+</node-navigation></programlisting>
<para>
The navigation node
<code>admins-sitemap</code>
@@ -466,35 +465,30 @@
<code>pages.xml</code>
file:
</para>
- <example>
- <title>pages.xml of /platform/administrators group</title>
- <programlisting>
-19.
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_3"...
-20. <!--
-21. adminsSitemap page contains just SiteMapPortlet. There is nothing special
about it.
-22. It is here just to demonstrate the adding of nodes to group navigation in the
sibling
-23. navigation.xml file.
-24. -->
-25. <page>
-26. <name>adminsSitemap</name>
-27. <title>Admins' Sitemap</title>
-28.
<access-permissions>*:/platform/administrators</access-permissions>
-29.
<edit-permission>*:/platform/administrators</edit-permission>
-30. <portlet-application>
-31. <portlet>
-32. <application-ref>web</application-ref>
-33.
<portlet-ref>SiteMapPortlet</portlet-ref>
-34. </portlet>
-35. <title>Sitemap</title>
-36.
<access-permissions>*:/platform/administrators</access-permissions>
-37. <show-info-bar>false</show-info-bar>
-38. </portlet-application>
-39. </page>
-40. </page-set>
-</programlisting>
- </example>
- </section>
- <section id="Adding_Navigation_Node_User_Navigation">
+ <programlisting>
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_3"...
+ <!--
+ adminsSitemap page contains just SiteMapPortlet. There is nothing special about
it.
+ It is here just to demonstrate the adding of nodes to group navigation in the
sibling
+ navigation.xml file.
+ -->
+ <page>
+ <name>adminsSitemap</name>
+ <title>Admins' Sitemap</title>
+
<access-permissions>*:/platform/administrators</access-permissions>
+
<edit-permission>*:/platform/administrators</edit-permission>
+ <portlet-application>
+ <portlet>
+ <application-ref>web</application-ref>
+ <portlet-ref>SiteMapPortlet</portlet-ref>
+ </portlet>
+ <title>Sitemap</title>
+
<access-permissions>*:/platform/administrators</access-permissions>
+ <show-info-bar>false</show-info-bar>
+ </portlet-application>
+ </page>
+</page-set></programlisting>
+ </example>
+ <example id="exam-Adding_Navigation_Node_User">
<title>Adding a Navigation Node to a User Navigation</title>
<para>
To add a new navigation node visible to a particular user, say
@@ -507,24 +501,19 @@
<code>root</code>
is a part of the path.
</para>
- <example>
- <title>navigation.xml of user root</title>
- <programlisting>
-19. <node-navigation
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-20.
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_3
http://www.gatein.org/xml/ns/gatein_objects_1_3"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_3"...
-21. <!-- Priority has no significance in user navigations. But it is required.
See GTNPORTAL-2751 -->
-22. <priority>1</priority>
-23.
-24. <page-nodes>
-25. <node>
-26. <name>roots-extra-dashboard</name>
-27.
<label>#{user.root.RootsExtraDashboard}</label>
-28.
<page-reference>user::root::roots-dashboard</page-reference>
-29. </node>
-30. </page-nodes>
-31. </node-navigation>
-</programlisting>
- </example>
+ <programlisting><node-navigation
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_3
http://www.gatein.org/xml/ns/gatein_objects_1_3"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_3"...
+ <!-- Priority has no significance in user navigations. But it is required. See
GTNPORTAL-2751 -->
+ <priority>1</priority>
+
+ <page-nodes>
+ <node>
+ <name>roots-extra-dashboard</name>
+ <label>#{user.root.RootsExtraDashboard}</label>
+
<page-reference>user::root::roots-dashboard</page-reference>
+ </node>
+ </page-nodes>
+</node-navigation></programlisting>
<para>
The navigation node
<code>roots-extra-dashboard</code>
@@ -534,39 +523,34 @@
<code>pages.xml</code>
file:
</para>
- <example>
- <title>pages.xml of user root</title>
- <programlisting>
-19. <page-set
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_3
http://www.gatein.org/xml/ns/gatein_objects_1_3"
-20.
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_3"...
-21. <!--
-22. roots-dashboard page contains just DashboardPortlet. There is nothing special
about it.
-23. It is here just to demonstrate the adding of nodes to user navigation in the
sibling
-24. navigation.xml file.
-25. -->
-26. <page>
-27. <name>roots-dashboard</name>
-28. <title>Root's Extra Dashboard</title>
-29.
<access-permissions>*:/platform/users</access-permissions>
-30.
<edit-permission>*:/platform/administrators</edit-permission>
-31. <portlet-application>
-32. <portlet>
-33.
<application-ref>dashboard</application-ref>
-34.
<portlet-ref>DashboardPortlet</portlet-ref>
-35. </portlet>
-36. <title>Root's Extra
Dashboard</title>
-37.
<access-permissions>*:/platform/users</access-permissions>
-38. <show-info-bar>false</show-info-bar>
-39. </portlet-application>
-40. </page>
-41. </page-set>
-42.
-</programlisting>
- </example>
- </section>
- <section id="Internationalization_Navigation_Nodes">
- <title>Internationalization of Navigation Nodes</title>
- <para>
+ <programlisting><page-set
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_3
http://www.gatein.org/xml/ns/gatein_objects_1_3"
+
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_3"...
+ <!--
+ roots-dashboard page contains just DashboardPortlet. There is nothing special
about it.
+ It is here just to demonstrate the adding of nodes to user navigation in the
sibling
+ navigation.xml file.
+ -->
+ <page>
+ <name>roots-dashboard</name>
+ <title>Root's Extra Dashboard</title>
+
<access-permissions>*:/platform/users</access-permissions>
+
<edit-permission>*:/platform/administrators</edit-permission>
+ <portlet-application>
+ <portlet>
+ <application-ref>dashboard</application-ref>
+ <portlet-ref>DashboardPortlet</portlet-ref>
+ </portlet>
+ <title>Root's Extra Dashboard</title>
+
<access-permissions>*:/platform/users</access-permissions>
+ <show-info-bar>false</show-info-bar>
+ </portlet-application>
+ </page>
+</page-set></programlisting>
+ </example>
+ </section>
+ <section id="Internationalization_Navigation_Nodes">
+ <title>Internationalization of Navigation Nodes</title>
+ <para>
As you can see in the above
<code>navigation.xml</code>
files the labels of navigation nodes can be internationalized. The files
containing translation resources live under
@@ -577,7 +561,7 @@
<code>pages.xml</code>
files:
</para>
- <para>
+ <para>
Note that the navigation resource bundles also need to be named in
<code>init.resources</code>
parameter of
@@ -586,39 +570,37 @@
<code>war/src/main/webapp/WEB-INF/conf/sample-ext/common/common-configuration.xml</code>
:
</para>
- <example>
- <title>common-configuration.xml containing declarations of navigation
resource bundles</title>
- <programlisting>
-19. <configuration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-20.
xsi:schemaLocation="http://www.exoplaform.org/xml/ns/kernel_1_2.xsd
http://www.exoplaform.org/xml/ns/kernel_1_2.xsd"
xmlns="http://www.exoplaform.org/xml/ns/kernel_1_2.xsd"...
-21. <external-component-plugins>
-22. <!-- The full qualified name of the ResourceBundleService -->
-23.
<target-component>org.exoplatform.services.resources.ResourceBundleService</target-component>
-24. <component-plugin>
-25. <!-- The name of the plugin -->
-26. <name>Sample ResourceBundle Plugin</name>
-27. <!-- The name of the method to call on the ResourceBundleService
in order to register the ResourceBundles -->
-28. <set-method>addResourceBundle</set-method>
-29. <!-- The full qualified name of the BaseResourceBundlePlugin
-->
-30.
<type>org.exoplatform.services.resources.impl.BaseResourceBundlePlugin</type>
-31. <init-params>
-32. <values-param>
-33. <name>init.resources</name>
-34. <description>Initiate the following resources
during the first launch.</description>
-35.
<value>locale.portal.extension</value>
-36.
<value>locale.navigation.user.root</value>
-37. <!--
-38. Note that we actually do not need to name
locale.navigation.portal.classic and
-39. locale.navigation.group.platform.administrators here as they
are in init.resources
-40. of the default GateIn installation. But it makes no harm to
include them once again here.
-41. -->
-42.
<value>locale.navigation.portal.classic</value>
-43.
<value>locale.navigation.group.platform.administrators</value>
-44. </values-param>
-45. <values-param>
-</programlisting>
- </example>
- </section>
+ <example>
+ <title>common-configuration.xml containing declarations of navigation
resource bundles</title>
+ <programlisting><configuration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://www.exoplaform.org/xml/ns/kernel_1_2.xsd
http://www.exoplaform.org/xml/ns/kernel_1_2.xsd"
xmlns="http://www.exoplaform.org/xml/ns/kernel_1_2.xsd"...
+ <external-component-plugins>
+ <!-- The full qualified name of the ResourceBundleService -->
+
<target-component>org.exoplatform.services.resources.ResourceBundleService</target-component>
+ <component-plugin>
+ <!-- The name of the plugin -->
+ <name>Sample ResourceBundle Plugin</name>
+ <!-- The name of the method to call on the ResourceBundleService in
order to register the ResourceBundles -->
+ <set-method>addResourceBundle</set-method>
+ <!-- The full qualified name of the BaseResourceBundlePlugin
-->
+
<type>org.exoplatform.services.resources.impl.BaseResourceBundlePlugin</type>
+ <init-params>
+ <values-param>
+ <name>init.resources</name>
+ <description>Initiate the following resources during
the first launch.</description>
+ <value>locale.portal.extension</value>
+
<value>locale.navigation.user.root</value>
+ <!--
+ Note that we actually do not need to name
locale.navigation.portal.classic and
+ locale.navigation.group.platform.administrators here as they are
in init.resources
+ of the default GateIn installation. But it makes no harm to
include them once again here.
+ -->
+
<value>locale.navigation.portal.classic</value>
+
<value>locale.navigation.group.platform.administrators</value>
+ </values-param>
+ </init-params>
+ </component-plugin></programlisting>
+ </example>
</section>
<section id="Custom_Internationalization_Resource_Bundles">
<title>Custom Internationalization Resource Bundles</title>
@@ -715,7 +697,7 @@
<code>Congratulations!</code>
is appended to it.
</para>
- <para>Refer to the <xref
linkend="Adding_Navigation_Node_Group_Navigation"/>
+ <para>Refer to the <xref
linkend="exam-Adding_Navigation_Node_Group"/>
for more details on internationalization of navigation nodes.
</para>
</section>
Modified: epp/docs/branches/6.0/Developer_Guide/en-US/images/Kinds+of+Navigation.png
===================================================================
(Binary files differ)