22.07.2013 Views

Sausalito Developer's Guide - Parent Directory

Sausalito Developer's Guide - Parent Directory

Sausalito Developer's Guide - Parent Directory

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3—6 Chapter 3: User Interface<br />

Beta Draft 11. Copyright ' 2001. Cobalt Networks, Inc. All Rights Reserved.<br />

Adding a New Navigation Node<br />

The example below demonstrates how to add nodes to the User Interface (UI). We will add<br />

two nodes in the example. Figure 3—2 on page 3—9 shows the result of this addition.<br />

helloMenu.xml<br />

<br />

<br />

<br />

hello.xml<br />

<br />

<br />

<br />

Node sample_helloworldmenu is a child to node base_administration and node<br />

sample_helloworld is a child of node sample_helloworldmenu.<br />

Using Unique Names<br />

You must use unique names for navigation nodes to avoid name conflicts. Cobalt<br />

recommends that you choose a vendor-specific name for your modules, and create directories<br />

with the vendor name. For example, if your company name was ivory, your XML files for the<br />

account information page would be ivory_account.xml in the /usr/sausalito/ui/<br />

menu/ivory directory.<br />

Building Pages<br />

Pages on <strong>Sausalito</strong> are built with PHP. This is because UIFC - the widget classes, and other<br />

utility classes are currently implemented in this language. These classes the foundation of<br />

<strong>Sausalito</strong> user interfaces and they are available to be used by developers.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!