R: [hobbit] R: [hobbit] problem with menu
Francesco Duranti
fduranti at q8.it
Thu Feb 10 21:58:12 CET 2005
Ok done in the script I've done:
BBWEB="/hobbit/WIN"; BBMENUSKIN="$BBWEB/menu"; exec bbgen --pageset=win
--report=bbgen-win --nopurple --rss --nstab=WIN/nstab.html $BBGENOPTIONS
$BBHOME/www/WIN
Now it's possible to do that BBMENUSKIN is not necessary to define and will
take automatically $BBWEB/menu?
Another strange think ... i get the rss files into the main BB folder but i
don't get rss file in the pageset directory... It's normal?
Francesco
_____
Da: Thiesfeld, Gordon [mailto:GThiesfeld at webmd.net]
Inviato: giovedì 10 febbraio 2005 21.15
A: hobbit at hswn.dk
Oggetto: RE: [hobbit] R: [hobbit] problem with menu
Ahh, it never occurred to me to do that. I think you'd have to do something
along the lines of this.
Use "bbgen --pageset=win --template=win" option for bbgen.
Create new header and footer files called win _header & win _footer in
$BBHOME/web.
In the new header and footer files, change $BBMENUSKIN to $WINMENUSKIN.
Add $WINMENUSKIN= "$BBHOME/www/hobbit/WIN/menu" to hobbitserver.cfg
I've never tried it, and I might be missing something. But I think that's
the gist of it.
_____
From: Francesco Duranti [mailto:fduranti at q8.it]
Sent: Thursday, February 10, 2005 12:32 PM
To: 'hobbit at hswn.dk'
Subject: [hobbit] R: [hobbit] problem with menu
Thanks for the clarification but I was thinking i could have a different
menu for different pagesets (it was a nice option to let users see only
their hobbit pages).
Francesco
_____
Da: Thiesfeld, Gordon [mailto:GThiesfeld at webmd.net]
Inviato: giovedì 10 febbraio 2005 19.25
A: hobbit at hswn.dk
Oggetto: RE: [hobbit] problem with menu
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/e76ebcc6/attachment.html>
More information about the Xymon
mailing list