[hobbit] problem with menu

Thiesfeld, Gordon GThiesfeld at webmd.net
Thu Feb 10 19:25:19 CET 2005


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:fduranti at q8.it] 
Sent: Thursday, February 10, 2005 12:00 PM
To: 'hobbit at hswn.dk'
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 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20050210/abb20480/attachment.html>


More information about the Xymon mailing list