I am trying to utilize the existing menu-tab jetspeed code but extend it to
allow for button images that operate under the same code as the text menus.
I am hoping someone out there might have a similar need or have already
accomplished this.  I would like to include the ability to specify an ON and
OFF image and/or a text string for the purposes of navigation.  The initial
main menu would be graphical image tabs with corresponding on and off images
while the submenu nested beneath each main menu button would be a text link
(as jetspeed is out of the box).  Here is an example of the site layout I am
proposing (http://amber.metnet.navy.mil/metoc/index.jsp). My initial thought
on it would be to add fields for BUTTON ON and BUTTON OFF images under the
ADD PANE area.  Whatever is entered in the currently implemented Name field
would be used as ALT tags for the button images or the actual TEXT
hyperlinks on the submenus.  My experience with XML is minimal but I was
thinking something like the following for a menu entry within a users
default psml file:

    <portlets id="P-edfa4120db-1008b">
        <metainfo>
            <title>HOME</title>
        </metainfo>
        <navinfo>
            <parameter name="buttonimageon"
value="/images/nav/home_on.jpg"/>
            <parameter name="buttonimageoff"
value="/images/nav/home_off.jpg"/>
        </navinfo>
        <skin name="metoc-gold"/>
        <layout position="0" size="-1"/>
        <control/>
        <controller name="RowController"/>
        <entry id="P-ee8aa72948-1001a" parent="FNMOC">
            <metainfo/>
            <skin/>
            <layout position="-1" size="-1"/>
            <control/>
        </entry>
    </portlets>

If the <navinfo> contains no parameters its assumed the menu entry is TEXT
only using the default $tab.Title.  If there are parameters specified it
would define the SELECTED states for the main menu.  If the menu entry has a
buttonimageon or buttonimageoff value then the then the jetspeed-tab.vm file
would have an if-else-end routine to account for outputting either text or
an image.  As it already tracks an isSelected state "#if
($tab.isSelected() )"  then all that need be done is to display the
appropriate button state for each button.

I realize this is all hypothetical and would love to say I could write the
code to make this happen but I have the insight of a designer and
unfortunately at this time lack the insight of a programmer.  I do however
feel this would greatly enhance the overall flexibility and functionality of
an already impressive product.

If anyone has ideas, solutions or feedback on this idea I would happily
welcome your insight and assistance.  I would prefer to find a solution that
involves improving the jetspeed operation and code vice re-writing source
that would ultimately be overwritten with a future upgrades of jetspeed.
Thank you in advance for your assistance and sorry if this seems like a long
and drawn out email.  I only wanted to be certain my goal was understood.

V/R,

Kevin


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to