Contents of the XML navigation files

As mentioned in the introduction, the icons and text are controlled by XML navigation files contained in common/navxml/ and local/navxml/. These all have the same definition. The items in local/navxml/ override those in common/navxml. But, it is not necessary to copy all the parameters from common/navxml to local/navxml. Only those parameters in a particular NAV item need to be specified in local/navxml.

Here is a simple NAV.XML file which will serve as an example.

  
  <?xml version="1.0" encoding="UTF-8"?>
  <NAVOBJECTS>
   <NAV PAGE="home" ORD="10">
    <THEME NAME="*default*">
     <TEXT>Home</TEXT>
     <IMAGE>common/images/core/home.gif</IMAGE>
    </THEME>
   </NAV>
   <NAV PAGE="user_usermymod" ORD="140">
    <THEME NAME="*default*">
     <TEXT>My profile</TEXT>
     <IMAGE>common/images/user/profile.png</IMAGE>
     <PARMS>"&amp;id_person=".$_SESSION['_obperson']['id_person'];</PARMS>
    </THEME>
   </NAV>
   <NAV LINK="http://dev.obliquid.com" ORD="55">
    <THEME NAME="*default*">
     <TEXT>Obliquid Development Site</TEXT>
    </THEME>
   </NAV>
  </NAVOBJECTS>
   
   

NAV has three attributes.

THEME has one attribute.

THEME has three elements.