A functional skin that replaces the left bar with a customizable Javascript menu system.
Note: You do not need to install anything on the browser to use this skin. The following instructions are for the administrator who installs the skin on the server where TWiki is running.
QuickMenuSkin.zip
in your twiki installation directory
The menu can behave in two ways. When CLICKMENU
is set to 0 then the menu automatically shows when you hover the mouse over the menu. When it is set to 1 then the menu is activated by clicking on it. By default CLICKMENU
is set to 0.
To add different menus to the menubar you can set QUICKMENUBAR
to the topic containing the javascript for your own custom menus. By default QUICKMENUBAR
is set to %SYSTEMWEB%.QuickMenuBar
, have a look at QuickMenuBar to see how the menus are created.
To change settings just add them to TWikiPreferences, WebPreferences, or your personal page.
Eg:
* Set CLICKMENU = 1 * Set QUICKMENUBAR = %SYSTEMWEB%.QuickMenuBar
The menu bar is built by default from QuickMenuBar, which in turn includes QuickMenuBarLogin (if login is enabled) and QuickMenuBarWebs and QuickMenuBarUtilities. If internationalisation is enabled, then QuickMenuBarLanguage is also included. These files contain javascript commands that are included by the skin's templates. You can edit these files to customize the menu, but be sure to avoid unwanted linking by enclosing your code in <noautolink>
... </noautolink>
tags.
mymenu = new QuickMenu.Menu(menuBar, "Menu Text", "", "/icons/icon.gif", "Menu Tip Information");
new QuickMenu.Menu(menuBar, "TWiki.org", "http://twiki.org/");
new QuickMenu.Menu(menuBar, "Say Hello", "js:alert('Hello')");
mymenu.Add("Item Text", "%SCRIPTURLPATH{"view"}%/PageToView", "", "Item Tip");
mymenu.Add("Text Formatting", "%SCRIPTURLPATH{"view"}%/TextFormattingRules", "%ICONURLPATH{"help"}%", "More formatting help");
mymenu.Add("Disabled item");
mymenu.Add("Choose Colour", ":Colour");
mymenu.Colour.Add(...
submenu = mymenu.Add("Choose Colour", ":");
submenu.Add(...
with (new QuickMenu.Menu(menuBar, "Menu")) {
Add("Item1", "url");
Add(); // Separator
with (Add("SubMenu", ":")) {
Add("SubItem1", "url");
Add("SubItem2", "url");
Add(...
}
}
new QuickMenu.Menu(menuBar, "%MAKETEXT{"Edit"}%", "%SCRIPTURLPATH{"edit"}%/%BASEWEB%/%BASETOPIC%?t=%GMTIME{"$epoch"}%", "%ICONURLPATH{"edittopic"}%", "%MAKETEXT{"Edit this topic text"}%");
with (new QuickMenu.Menu(menuBar,"%MAKETEXT{"Changes"}%","","","%MAKETEXT{"Latest Changes"}%")) {
%SEARCH{".*" web="%BASEWEB%" regex="on" nosearch="on" nototal="on" order="modified" reverse="on" limit="10" format=" Add(\"$topic\", \"%SCRIPTURLPATH{view}%/$web/$topic\",\"\");"}%
}
with (new QuickMenu.Menu(menuBar,"Web Topics")){
Add("%HOMETOPIC%", "%SCRIPTURLPATH{view}%/%BASEWEB%/%HOMETOPIC%", "%ICONURLPATH{"home"}%");
Add();
%SEARCH{"\%META:TOPICPARENT\{name=\"%HOMETOPIC%\"\}\%" type="regex" nonoise="on" format=" Add(\"$topic\", \"%SCRIPTURLPATH{view}%/$web/$topic\");"}%
}
Description: | Functional skin that replaces the left bar with a customizable Javascript menu system |
Screenshot: | ![]() |
Preview: | Preview with this topic |
Base Name: | quickmenu |
Skin Author: | TWiki:Main/VernonLyon![]() |
Skin Version: | 1 Feb 2007 (v1.07) |
Change History: | |
1 Feb 2007: | Added a missing template for TWiki 4.1.0 (v1.07) |
21 Nov 2006: | Added backlinks template, Fixed IE "select" bug, Menu items are actual links, Cleaner interface (v1.06) |
13 Sep 2006: | Fixed IE bug (v1.05) |
18 Jul 2006: | Added language support (v1.04) |
13 Jul 2006: | Added support for icons in the menubar (v1.03) |
4 Jul 2006: | Added QUICKMENUBAR setting (v1.02) |
21 Jun 2006: | Added "Account" menu (v1.01) |
13 Jun 2006: | Initial version (v1.00) |
Dependencies: | |
Skin Home: | http://TWiki.org/cgi-bin/view/Plugins/QuickMenuSkin![]() |
Feedback: | http://TWiki.org/cgi-bin/view/Plugins/QuickMenuSkinDev![]() |
Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/QuickMenuSkinAppraisal![]() |
Related topic: TWikiSkins, TWikiSkinBrowser, UserDocumentationCategory, AdminDocumentationCategory
-- TWiki:Main/VernonLyon - 13 Jun 2006
I | Attachment | Action![]() |
Size | Date | Who | Comment |
---|---|---|---|---|---|---|
![]() |
arrow.gif | manage | 0.1 K | 08 Dec 2008 - 10:55 | TWikiAdminUser | Saved by install script |
![]() |
arrow_over.gif | manage | 0.2 K | 08 Dec 2008 - 10:55 | TWikiAdminUser | Saved by install script |
![]() |
fullscreen.gif | manage | 24.1 K | 08 Dec 2008 - 10:55 | TWikiAdminUser | Saved by install script |
![]() |
menu_bg.gif | manage | 0.8 K | 08 Dec 2008 - 10:55 | TWikiAdminUser | Saved by install script |
![]() |
menu_over.gif | manage | 0.2 K | 08 Dec 2008 - 10:55 | TWikiAdminUser | Saved by install script |
![]() |
menubar.gif | manage | 0.9 K | 08 Dec 2008 - 10:55 | TWikiAdminUser | Saved by install script |
![]() |
menubaritem_bg.gif | manage | 0.1 K | 08 Dec 2008 - 10:55 | TWikiAdminUser | Saved by install script |
![]() |
menuitem_bg.gif | manage | 0.3 K | 08 Dec 2008 - 10:55 | TWikiAdminUser | Saved by install script |
![]() |
menuitem_over.gif | manage | 0.1 K | 08 Dec 2008 - 10:55 | TWikiAdminUser | Saved by install script |
![]() |
qmenu.css | manage | 2.0 K | 08 Dec 2008 - 10:55 | TWikiAdminUser | Saved by install script |
![]() |
qmenu.js | manage | 11.7 K | 08 Dec 2008 - 10:55 | TWikiAdminUser | Saved by install script |
![]() |
screenshot.gif | manage | 8.7 K | 08 Dec 2008 - 10:55 | TWikiAdminUser | Saved by install script |
![]() |
style.css | manage | 6.6 K | 08 Dec 2008 - 10:55 | TWikiAdminUser | Saved by install script |