Pic/update.png ButtonMenu2 template is now available. It works with version 2.3.72-alpha Pic/update.png

Salient features:

  • Skins can be changed on the fly
  • All styling done through CSS
  • Same CSS for IE and Mozilla
  • XHTML compliant html
  • Tables have been used sparingly

Here are the steps to configure the skins:

  • JSPWiki is used to denote the location of your wiki
  • Unzip the contents of ButtonMenu.zip to a temporary location
  • Copy ButtonMenu dir to the JSPWiki/templates
  • Edit JSPWiki/WEB-INF/jspwiki.properties to set templateDir to ButtonMenu e.g. 'jspwiki.templateDir = ButtonMenu'
  • To change wiki skins modify JSPWiki/templates/ButtonMenu/WikiCSS.jsp
    • WikiSkinBlue.css
    • WikiSkinOrange.css
    • WikiSkinGreen.css
  • Start your JSPWiki and add button menus on the left-hand-side TOC by clicking the 'Edit' button and adding wiki links inside a list. Here is sample code to do that.
*[Main]
*[AboutMe]
*[Resume]
*[JSP Wiki Skins|JSPWikiSkins]
*[Message Center|MessageCenter]

The ButtonMenuTemplate skin overrides the style for unordered list (UL) tag inside the left-hand-side TOC so that all the list items appear as buttons. Hence, you can easily create buttons by adding list items to your left-hand-side TOC as shown in the above example.

The ButtonMenu skins are CSS based and use a standard layout for all the skins. The layout for the wiki pages is defined in the JSP files under templates/ButtonMenu directory. The JSP files have no styling information; all the styles are governed by the CSS files. All the pages in the wiki include the WikiCSS.jsp which embeds the link to the correct CSS file. There are 3 pre-packaged CSS files namely: WikiSkinBlue.css, WikiSkinOrange.css and WikiSkinGreen.css. The CSS files work fine both for IE and Mozilla and there is no need for separate CSS implementations for different browsers. Just make sure that whenever you modify the CSS files you test it for both IE and Mozilla.

--BaldeepHira
http://www.bhira.net


Screenshots#

BlueSkin.jpg GreenSkin.jpg OrangeSkin.jpg

Comments/Discussion#

Baldeep, I have been experimenting with the JSPWiki for use within our organization. I originally had the 2.0.52 version with your ButtonMenuTemplate, simple nice and non-intrusive, thank you. I wanted to test out some of the features that were in 2.1.x. Your template now does not display the H1 ... H3 headers correctly. I know it most be a simple sytle sheet problem but I don't know exactly what. --RichardStephan

Richard, it's mainly to do with the new way jspwiki now does the anchoring stuff (for the TableOfContents plugin I think), all headers are generated as <h1><a name="some-auto-generated-name"></a></h1>. This is what causes the display problem. At the top of the css file you'll see a

/* Global styles applied to standard HTML tags */
body, div, span, br, p, a, pre, textarea, form, table, tr, td {
    font-family:Verdana, Arial, Helvetica, sans-serif;
    font-size:10px;
    margin:0px;
    padding:0px;
}

Get rid of the a reference there, and you should see all the headings again, at the right size. Doing this does cause its own problems, you can problably fix those by cut/paste the font/size stuff into the appropriate sectinos -- LewinChan


I have updated this template to work on JSPWiki version 2.3.72-alpha Since there are a lot of changes between the 2 versions am placing it as a separate release called ButtonMenu2 Template. Please try it out and let me know if you run into any issues.

--Baldeep Hira, 12-Feb-2006
http://www.bhira.net

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
jpg
BlueSkin.jpg 57.0 kB 1 06-Jun-2004 23:10 BaldeepHira
zip
ButtonMenu.zip 152.0 kB 1 06-Jun-2004 23:10 BaldeepHira
jpg
GreenSkin.jpg 59.0 kB 1 06-Jun-2004 23:11 BaldeepHira
jpg
OrangeSkin.jpg 59.1 kB 1 06-Jun-2004 23:11 BaldeepHira
« This page (revision-20) was last changed on 21-Nov-2007 21:04 by 12.108.188.134