Would navigation definition be well suited in a registry file?
Something like,
*********************
defines a top and a bottom navigator type, has an isActive which would allow
for multiple type definitions but only one active type instance.  A logo
definition, with a definable image,position.  Link definitions, a welcome
message, etc.

jetspeedtopnavigator could read this and construct.


********************


<?xml version="1.0"?>
<!-- Contains the definitions for Top and Bottom Navigation Bars-->
<registry>
        <navigators>
                <entry type="top" isActive="true">
                        <Logo name="link" value="home"/>
                        <Logo name="image" value="/media/logo.gif"/>
                        <Logo name="position" value="left"/>
                        <welcome>Welcome to ABC Corporation!</welcome>
                        <css>/content/css/default.css</css>
                        <links name="home" label="home" href=""
isAdmin="false" isVisible="false"/>
                        <links name="personalize" label="personalize"
image="content/media/personalize.gif"
href="/servlet/com.qmetrics.servlets.ListUserReports" isAdmin="false"
isVisible="true"/>
                        <links name="admin" label="admin"
image="content/media/admin.gif"
href="/servlet/com.qmetrics.servlets.AdminUserCfg" isAdmin="true"
isVisible="true"/>
                        <links name="scheduler" label="scheduler"
image="content/media/scheduler.gif"
href="/servlet/com.qmetrics.servlets.SchedulerCfg" isAdmin="false"
isVisible="true"/>
                        <links name="help" label="help"
image="content/media/help.gif" href="" isAdmin="false" isVisible="true"/>
                </entry>
                <entry type="bottom" isActive="true">
                        <Logo name="link" value="home"/>
                        <Logo name="image"
value="/media/qmetrics-logo.gif"/>
                        <Logo name="position" value="right"/>
                        <welcome/>
                        <css>/content/css/default.css</css>
                        <links name="home" label="home"
image="content/media/home.gif" href="" isAdmin="false" isVisible="true"/>
                        <links name="contact" label="contact us"
image="content/media/contact.gif" isAdmin="false" isVisible="true"/>
                </entry>
        </navigators>
</registry>


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to