PmWiki /
Skins
administrators (basic)
ContentsWhat is a skin?A skin is a bunch of files that control what PmWiki pages look like (colors, fonts, borders, etc.) and how they are laid out. The easiest way to understand what a skin does is to try some out using the links below. They lead to this same page (PmWiki.Skins) on the pmwiki.org site, and open in a separate window. As you saw, all skins show the same page contents, but the other elements such as the sidebar, header, and footer, all changed. For example, different skins may display the sidebar on the left, on the right, or even not at all. Some skins have action links and features that others do not, especially if they were designed to take advantage of particular cookbook recipes. So, a skin is just the set of files that determine how pages are displayed in PmWiki. Normally skins are stored as subfolders of pub/skins/. Each skin typically has one or more of the following kinds of files:
Where do I get skins?Skins are available in the Cookbook:Skins collection. The skins in the collection have been contributed by other PmWiki administrators for others to use, and typically have their own set of customization possibilities. When you find a skin you like, follow the link to download the skin package.How do I use or install a skin?Most skin packages are .zip, .tgz, or .tar.gz files. You should be able to unpack these with most archiving software.
How can I make a skin?The best way to make your first skin is to modify a copy of PmWiki's default skin.
Tools that you'll needThere are good examples of all these programs available for free. HTML and CSS editor(s). There are two types of editors: graphical (WYSIWYG, or "what you see is what you get"), and hand-coding or programmer's editors. Graphical editors are less intimidating to novices, but you won't learn as much, or know your code as intimately as you will by using a hand-coding editor. Whichever you choose, get one that has syntax highlighting for the code, because it will help you spot mistakes. Also, live preview features are not that helpful when writing a PmWiki skin, because PmWiki does stuff that the live preview won't, such as substitute values for variables and insert sidebar content. Test wiki. You don't want to be wreaking havoc on your skin while visitors can see your site. It's a better idea to set up a test wiki, either on your real webserver or on your own machine. Linux or MacOS computer owners may have webservers and PHP already running on their machines, but Windows users often don't. If that describes you, then you might want to take a look at the Cookbook:Standalone recipe, which runs PmWiki without needing a complex webserver. Or, you can find many local server packages which install a webserver, PHP, and other stuff (e.g. MySQL), all configured to work together. Try to get a package that has the same software and versions as used on your live setup, since then there will be less to go wrong when the site goes live. FTP client to transfer files to your webserver. You probably had one of these already. Color picker. Your editor might include one, or you could pick up a standalone application. Extremely helpful for creating and saving color palettes.See also<< Local customizations | Documentation Index | Upgrades >>How do I change the Wiki's default name in the upper left corner of the Main Page? Put the following config.php$WikiTitle = 'My Wiki Site';
How can I embed PmWiki pages inside a web page? Source them through a PHP page, or place them in a frame.How do I change the font or background color of the hints block on the Edit Page? Add a CSS style to pub/css/local.css:.quickref {background:...; color:... } . The hints are provided by the Site.EditQuickReference page, which is in the PmWiki or Site wikigroup. Edit that page, and change the "bgcolor" or specify the font "color" to get the contrast you need.
|