|
HowToMakeABasicSkin<< | Cookbook-V1 | >> Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
WhyYou could just use the skin that comes with PmWiki, but your site should have your own personal touch! The best part is that if you decide to employ style sheets in your design, you can literally have users choose the skin they like the most! You might start by looking at the PmWiki.LayoutBasics page to get started, and then using that information to understand what is going on here. Code for a Basic Skin
<html>
<head>
<title>$HTMLTitle - $WikiTitle</title>
</head>
<body>
<table width='800' border='0'>
<tr><td>
<h1>$WikiTitle</h1>
<ul>
<li><a id='browse' href='$PageUrl'>Read</a></li>
<li><a id='edit' href='$PageUrl?action=edit'>Edit</a></li>
<li><a id='diff' href='$PageUrl?action=diff'>History</a></li>
</ul>
<p><!--PageText--></p>
</td>
<td>
<p><!--wiki:$Group.SideBar Main.SideBar--></p>
</td></tr>
</table>
<ul>
<li><a href="#top">Back to top</a></li>
<li><a href="$ScriptUrl/$[PmWiki/WikiHelp]">$[WikiHelp]</a></li>
<li><a href="$ScriptUrl/$[Main/SearchWiki]">$[SearchWiki]</a></li>
<li><a href="$ScriptUrl/$[$Group/RecentChanges]">$[Recent Changes]</a></li>
<li><a href="$ScriptUrl/$[Main/AllRecentChanges]?action=rss">XML Feed</a></li>
</ul>
<p>$[Page last modified on $LastModified]</p>
<p>Powered by <a href='$ScriptUrl/PmWiki.PmWiki'>PmWiki</a></p>
</body>
</html>
Key pointsThis skin is not pretty. But, it does happen to illustrate all the points that I feel are key to a template. You can jazz it up with style sheets all you want, but I felt like they might cloud the real message here, so I have left them out. To get an idea of how to use them, check out some of the existing skins on the Cookbook.Skins page, or just check out the one that comes with your installation. It can be found in pub/skins/pmwiki. Back to this example, though, here are the key points to take away from this example.
So now you should have a place to start. You can add the markup for a tabbed interface, next, which you can read about on the HowToMakeATabbedSkin page. pmwiki-2.2.0-beta68 -- Last modified by {{DanDube}}
|