2.5.2. Group and User Navigation

Group Navigation

Group navigations are dynamically added to the user navigation at login. This allows users to see the menu of all pages assigned to any groups they belong to.

The group navigation menu is configured by two XML files (navigation.xml and pages.xml). The syntax used in these files is the same as those covered in Section 2.5.1, “Portal Navigation”.

They are located in the portal.war/WEB-INF/conf/portal/group/group-name-path/ directory. For example, portal.war/WEB-INF/conf/portal/group/platform/administrators/.

User Navigation

User navigation is a set of nodes and pages that are owned by the user. They are part of the user's dashboard.

Two files configure the user navigation (navigation.xml and pages.xml). They are located in the portal.war/WEB-INF/conf/portal/users/{userName} file.

The eXoGadgets.war/WEB-INF/gadget.xml file defines the gadgets that will be available on a user dashboard.

The example below shows a dashboard with all of the default gadgets included, as well as an extra currency converter gadget sourced from Google Gadgets.


<?xml version="1.0" encoding="ISO-8859-1"?>
<gadgets
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_2
http://www.gatein.org/xml/ns/gadgets_1_0"
    xmlns="http://www.gatein.org/xml/ns/gadgets_1_0">
  <gadget name="Todo">
    <path>/gadgets/Todo/Todo.xml</path>
  </gadget>

  <gadget name="Calendar">
    <path>/gadgets/Calendar/Calendar.xml</path>
  </gadget>

  <gadget name="Calculator">
    <path>/gadgets/Calculator/Calculator.xml</path>
  </gadget>

  <gadget name="rssAggregator">
    <path>/gadgets/rssAggregator/rssAggregator.xml</path>
  </gadget>
  <gadget name="Currency">
    <url>http://www.donalobrien.net/apps/google/currency.xml</url>
  </gadget>

  <gadget name="ServiceMangement">
    <path>/gadgets/ServiceManagement/ServiceManagement.xml</path>
  </gadget>
</gadgets>

See also

Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus