[gatein-commits] gatein SVN: r3814 - exo/portal/branches/3.1.x/docs/reference-guide/en/modules/PortalDevelopment.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Aug 13 06:30:04 EDT 2010


Author: hoang_to
Date: 2010-08-13 06:30:04 -0400 (Fri, 13 Aug 2010)
New Revision: 3814

Modified:
   exo/portal/branches/3.1.x/docs/reference-guide/en/modules/PortalDevelopment/DefaultPortalNavigationConfiguration.xml
Log:
EXOGTN-32: Document the gatein objects xsd

Modified: exo/portal/branches/3.1.x/docs/reference-guide/en/modules/PortalDevelopment/DefaultPortalNavigationConfiguration.xml
===================================================================
--- exo/portal/branches/3.1.x/docs/reference-guide/en/modules/PortalDevelopment/DefaultPortalNavigationConfiguration.xml	2010-08-13 03:48:40 UTC (rev 3813)
+++ exo/portal/branches/3.1.x/docs/reference-guide/en/modules/PortalDevelopment/DefaultPortalNavigationConfiguration.xml	2010-08-13 10:30:04 UTC (rev 3814)
@@ -181,28 +181,36 @@
 						When <literal>#{...}</literal> syntax is used, the enclosed property name serves as a key that is automatically passed to internationalization mechanism
                   so the literal property name is replaced by a localized value taken from the associated properties file matching the current locale.
 					</para>
+
+<programlisting role="XML">
+ <![CDATA[
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<node-navigation
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_0 http://www.gatein.org/xml/ns/gatein_objects_1_0"
+    xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_0">
+  <priority>1</priority>
+  <page-nodes>
+     <node>
+     	<uri>home</uri>
+      	<name>home</name>
+      	<label>#{portal.classic.home}</label>
+      	<page-reference>portal::classic::homepage</page-reference>	    
+     </node>   
+     <node>
+      	<uri>sitemap</uri>
+      	<name>sitemap</name>
+      	<label>#{portal.classic.sitemap}</label>
+      	<visibility>DISPLAYED</visibility>
+      	<page-reference>portal::classic::sitemap</page-reference>
+    </node>	  
+  </page-nodes>
+</node-navigation>
+
+ ]]>
+</programlisting>
+
 					
-<programlisting role="XML">&#60;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34;?&#62;
-&#60;node-navigation&#62;
-  &#60;owner-type&#62;portal&#60;/owner-type&#62;
-  &#60;owner-id&#62;classic&#60;/owner-id&#62;
-  &#60;priority&#62;1&#60;/priority&#62;
-  &#60;page-nodes&#62;
-   &#60;node&#62;
-     &#60;uri&#62;home&#60;/uri&#62;
-     &#60;name&#62;home&#60;/name&#62;
-     &#60;label&#62;#{portal.classic.home}&#60;/label&#62;
-     &#60;page-reference&#62;portal::classic::homepage&#60;/page-reference&#62;     
-   &#60;/node&#62;    
-   &#60;node&#62;
-     &#60;uri&#62;webexplorer&#60;/uri&#62;
-     &#60;name&#62;webexplorer&#60;/name&#62;
-     &#60;label&#62;#{portal.classic.webexplorer}&#60;/label&#62;
-     &#60;page-reference&#62;portal::classic::webexplorer&#60;/page-reference&#62;     
-   &#60;/node&#62;
-  &#60;/page-nodes&#62;
-&#60;/node-navigation&#62;
-</programlisting>
 					<para>
 						This navigation tree can have multiple views inside portlets (such as the breadcrumbs portlet) that render the current view node, the site map or the menu portlets.
 					</para>
@@ -221,42 +229,58 @@
 						This configuration file structure is very similar to <filename>portal.xml</filename> and it can also contain container tags.
                   Each application can decide whether to render the portlet border, the window state, the icons or portlet's mode.
 					</para>
+
+<programlisting role="XML">
+  <![CDATA[
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<page-set
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_0 http://www.gatein.org/xml/ns/gatein_objects_1_0"
+    xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_0">
+
+  <page>
+    <name>homepage</name>
+    <title>Home Page</title>
+	  <access-permissions>Everyone</access-permissions>
+	  <edit-permission>*:/platform/administrators</edit-permission>
+    <portlet-application>
+      <portlet>
+        <application-ref>web</application-ref>
+        <portlet-ref>HomePagePortlet</portlet-ref>
+        <preferences>
+          <preference>
+            <name>template</name>
+            <value>system:/templates/groovy/webui/component/UIHomePagePortlet.gtmpl</value>
+            <read-only>false</read-only>
+          </preference>
+        </preferences>
+      </portlet>
+      <title>Home Page 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>
+    <name>sitemap</name>
+    <title>Site Map</title>
+	  <access-permissions>Everyone</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>Everyone</access-permissions>
+      <show-info-bar>false</show-info-bar>      
+    </portlet-application>
+  </page>
+</page-set>
+]]>
+</programlisting>
 					
-<programlisting role="XML">&#60;?xml version=&#34;1.0&#34; encoding=&#34;ISO-8859-1&#34;?&#62;
-&#60;page-set&#62;  
-  &#60;page&#62;
-    &#60;page-id&#62;portal::classic::homepage&#60;/page-id&#62;
-    &#60;owner-type&#62;portal&#60;/owner-type&#62;
-    &#60;owner-id&#62;classic&#60;/owner-id&#62;
-    &#60;name&#62;homepage&#60;/name&#62;
-    &#60;title&#62;Home Page&#60;/title&#62;
-    &#60;access-permissions&#62;Everyone&#60;/access-permissions&#62;
-    &#60;edit-permission&#62;*:/platform/administrators&#60;/edit-permission&#62;
-    &#60;application&#62;
-      &#60;instance-id&#62;portal#classic:/web/HomePagePortlet/homepageportlet&#60;/instance-id&#62;
-      &#60;title&#62;Home Page portlet&#60;/title&#62;
-      &#60;show-info-bar&#62;false&#60;/show-info-bar&#62;
-      &#60;show-application-state&#62;false&#60;/show-application-state&#62;
-      &#60;show-application-mode&#62;false&#60;/show-application-mode&#62;
-    &#60;/application&#62;
-  &#60;/page&#62;    
-    
-  &#60;page&#62;
-    &#60;page-id&#62;portal::classic::webexplorer&#60;/page-id&#62;
-    &#60;owner-type&#62;portal&#60;/owner-type&#62;
-    &#60;owner-id&#62;classic&#60;/owner-id&#62;
-    &#60;name&#62;webexplorer&#60;/name&#62;
-    &#60;title&#62;Web Explorer&#60;/title&#62;
-    &#60;access-permissions&#62;*:/platform/users&#60;/access-permissions&#62;
-    &#60;edit-permission&#62;*:/platform/administrators&#60;/edit-permission&#62;    
-    &#60;application&#62;
-      &#60;instance-id&#62;group#platform/users:/web/BrowserPortlet/WebExplorer&#60;/instance-id&#62;
-      &#60;title&#62;Web Explorer&#60;/title&#62;
-      &#60;show-info-bar&#62;false&#60;/show-info-bar&#62;
-    &#60;/application&#62;  
-  &#60;/page&#62;  
-&#60;/page-set&#62;
-</programlisting>
 				</listitem>
 			</varlistentry>
 			<varlistentry>



More information about the gatein-commits mailing list