Xymon Mailing List Archive search

problem with menu

list Gordon Thiesfeld
Thu, 10 Feb 2005 12:25:19 -0600
Message-Id: <user-c974d1e714f5@xymon.invalid>

I think you need to modify $BBHOME/www/menu/menu_item.js.

 
Maybe something like this:

 
var MENU_ITEMS = [

        ['Views', null, null,

                ['Main view', '/hobbit/bb.html'],

                ['All non-green view', '/hobbit/bb2.html'],

                ['NK view', '/hobbit/bbnk.html'],

                ['Back','javascript:history.back()'], // The back button

        ],

 
        ['WIN Page Set', null, null,

                ['Main view', '/hobbit/WIN/bb.html'],

                ['All non-green view', '/hobbit/WIN/bb2.html'],

                ['NK view', '/hobbit/WIN/bbnk.html'],

        ],

 
The full documentation is here:

http://www.softcomplex.com/products/tigra_menu/docs/


From: Francesco Duranti [mailto:user-7104dcecbfef@xymon.invalid] 
Sent: Thursday, February 10, 2005 12:00 PM
To: 'user-ae9b8668bcde@xymon.invalid'
Subject: [hobbit] problem with menu

 
Hi all; I've a problem with the menu.

I've some alternate pagesets. 

I create them with a bbdisplay.sh because i need to define the BBWEB
environment variable if nothing changed from the last versions) that
contains the command:

BBWEB="/hobbit/WIN" bbgen --pageset=win --report=bbgen-win --nopurple --rss
$BBGENOPTIONS $BBHOME/www/WIN
and is launched from the hobbitlaunch config.

 
In the hobbitserver.cfg file i've 

BBGENOPTIONS="--hobbitd --nopropred=msgs,vmio --pagetext-headings
--recentgifs --subpagecolumns=2 --timing
--docurl=/bb/admin/notes.php?host=%s --rssversion=2.0
--eventignore=uptime,event,msgs,vmio,legato --includecolumns=graph
--bb2-ignorecolumns=legato"

I've copied the menu directory into the $BBHOME/www/hobbit/WIN directory and
changed the links into the js file to point to /hobbit/WIN/bb2.html but it's
not working it seems to point to the root /menu directory.

There's something that i've to do to get menu work with alternate sets? It's
important because i don't have any link to move around pages in alternates
subset.

 
Another request: It's possible to integrate a "back" link button in the
header page for example?

 
Thanks for the fantastic work you're doing :D