OrGrSkin
(redirected from Cookbook-V1.BlueNRed)
<< | Cookbook-V1 | >>
Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
<< | Cookbook.Skins | >>
Skin overview
Because I donĀ“t know how to display the skin here - you can have a look at http://www.wikiwiki.de/. The Skin features editable menus on the right side, an editable message, copyrightbox, a site-wide search box and an editable footer. External links are marked with a small icon. The graphics can be replaced with your own.
The site uses the Cookbook/SkinChange recipe. All is done with the cascading style sheet to create another look.
How to create Menus
Menus are Wikipages. Three of them are defined on the right side. The (default) names are defined in the template.
!!! Headings in level 3 create a Menuheader Links in Bulleted Lists (like in trails) create Menuentries.
Titles and menuentries may be mixed. The positioning is calculated dynamically. Hence you can create Menus as long as you want. If there is no wikipage, nothing will be displayed.
Trails at Menu
You may add the following code to trails.php which is distributed with PmWiki.
$DoubleBrackets["/<>\\|($TrailLinkPattern)\\|<>/e"] = 'MakeTrailMenu("$1");'; function MakeTrailMenu($link) { global$pagename
; $t = ReadTrail($link); $prev = ; $next = ; for($i=0;$i<count($t);$i++) { if ($t[$i]['name']==$pagename
) { if ($i>0) $prev = $t[$i-1]['link']; if ($i+1<count($t)) $next = $t[$i+1]['link']; } } return "$prev</li><li>$link</li><li>$next"; }
If you then use the markup * <>|TrailPage|<> in a menu page, it will be displayed as three Menuitems "PrevPage"-"TrailPage"-"NextPage". I use this for my script about Auto-ID.
Corrections
Position of the searchbox was not relative - an error occurred if the window was resized. Now corrected.
Some minor correction to the OrGrSkin and added the green and tech skin.
Files
Author
pmwiki-2.3.38 -- Last modified by {{}}?