|
Cookbook /
HorizontalVerticalMenuSummary: Generate multilevel horizontal and vertical menus
Version: 2007-03-28
Prerequisites: works with version 2.1.0 (latest tested with 2.2.0 beta 31)
Status: Stable
Maintainer: Klonk
Categories: Menus
Votes:
DescriptionThis script provides additional markup for easy generation of multilevel horizontal and vertical menus. (This technique is also used with the advanced version of the DropDownSkin. Advanced means that it provides special markup). I took the idea from here and here and just optimised it and changed it so it can be used with PmWiki. Available Markup (see also examples)
Files and InstallationSimply extract this ZIP file into the PmWiki directory and insert the following line into your config.php: include_once('cookbook/menus.php');
Now you can create menus whereever you want. ExamplesHorizontal menu:![]() (:hmenu:) *Level 0 (:newmenu:) *Level 0.1 **Level 1 ***Level 2 **Level 1.1 (:menuend:) Vertical menu:![]() (:vmenu:) *Level 0 **Level 1 ***Level 2 **Level 1.1 *Level 0.1 (:menuend:) Expanded menu:![]() (:emenu:) *Level 0 **Level 1 ***Level 2 **Level 1.1 *Level 0.1 (:menuend:) See a live example here Limitations
Bugs
History
Comments
Extract the ZIP file into the pmwiki directory completly with path. Then The .css file should be placed in pub/menus. And you'll see it works then - Klonk March 28, 2007, at 02:06 AM I think it'd be nice if this script could make use of the bullet list markups rather than introducing a new one. --Pm
I'm merging the evolver skin with a template from an existing website I maintain. One of the things I need is a drop down menu on the page, so I added this menu. The problem is, I can see the code for the drop down menu when I go to View -> Page source in Firefox, but the menu doesn't show up on the page. Is there a div id or class that I need to add a z-index to in the css or something? If I simply comment out the css link in the template, the menu shows up great (though of course the page looks awful). I've tried looking through the page source in Firefox and added a z-index to a couple divs, but it doesn't seem to have changed anything. Does anyone have any hints? TIA. --stormspotter
I'm getting extra backslashes in rendered markup. Here is the markup I am using: This is a "test." *This is a "test." It displays in my browser like this: This is a "test." * This is a \"test.\" This bug is squashed. Works great now. Getting this to work with IE and XP SP2 when served by Apache: Edit /etc/apache/mime.types (or /etc/apache2/mime.types) as applicable
Add the line: text/x-component <whitespace> htc
Overwrite ./pub/menus/csshover.htc with version 2 or better of whaterever:hover from http://www.xs4all.nl/~peterned/csshover.html
--knightPhlight this works Firefox and partialy works in IE7 but puts a empty space when a menu button has sub menus, so you cant select the one below it., exellent work well done, i'll have to point people to firefox for the site, any ETA on the functionality in IE 6? would apreciate it.
i'm having some annoying problems with IE, where it puts a small space after the first entery to the menu this stops you form being able to select the lower sections, i've looked at the whaterever:hover site and the example on there works, what has this got in it that the scrip here does not? anyone help me out, or is there a browser detect redirect script that we have? . or can i use the hide mark ups to, hide and show menus depending upon the browser type?
In IE7, with the aforementioned csshover.htc update, I am getting the bullets displayed. This is not the case for Firefox 2 and IE6. I'm using beta 2.2.0-beta-44 --Scott Smith
div#hmenu .menuitem,
div#hmenu .menutitle,
div#vmenu .menuitem,
div#vmenu .menutitle,
div#emenu .menuitem,
div#emenu .menutitle {
display:block;
width:100%;
background:#ddd;
margin:0;
padding:1px 0;
font-size:95%;
text-indent:3px;
white-space:nowrap;
list-style-type: none;
list-style-image: none;
}
-- C.R. Andrews, Jr. only occurs I have no problems getting the menus.php to work with the original PmWiki installation in the farm, but the other wikis are not working. Is this farm friendly? I'm using beta 2.2.0-beta-44 --Scott Smith Same Here I could put the script to work in a plane instalation but not in a farm installation, anybody has put it to work in a farm ? --Edwin Marte, Nov 23,2007 |