problem with menu
list Francesco Duranti
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
list Gordon Thiesfeld
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
list Francesco Duranti
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:user-708d5343dd9a@xymon.invalid] Inviato: giovedì 10 febbraio 2005 19.25 A: user-ae9b8668bcde@xymon.invalid 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: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
list Gordon Thiesfeld
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:user-7104dcecbfef@xymon.invalid] Sent: Thursday, February 10, 2005 12:32 PM To: 'user-ae9b8668bcde@xymon.invalid' 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:user-708d5343dd9a@xymon.invalid] Inviato: giovedì 10 febbraio 2005 19.25 A: user-ae9b8668bcde@xymon.invalid 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: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
list Francesco Duranti
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:user-708d5343dd9a@xymon.invalid] Inviato: giovedì 10 febbraio 2005 21.15 A: user-ae9b8668bcde@xymon.invalid 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:user-7104dcecbfef@xymon.invalid] Sent: Thursday, February 10, 2005 12:32 PM To: 'user-ae9b8668bcde@xymon.invalid' 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:user-708d5343dd9a@xymon.invalid] Inviato: giovedì 10 febbraio 2005 19.25 A: user-ae9b8668bcde@xymon.invalid 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: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