<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<a class="moz-txt-link-freetext" href="http://pmwiki.org/wiki/PITS/00615">http://pmwiki.org/wiki/PITS/00615</a> (note there is additional discussion
on the PITS page)<br>
<br>
<div class="pits">Summary: Suggested default template changes for 2.1</div>
<div class="pits">Status: Discussion</div>
<div class="pits">Category: Feature</div>
<p>Description: The following are proposed for discussion, to be
implemented as part of 2.1. They will make it easier for admins to
customise their pages with less changes required to templates etc. </p>
<p>They are changes to the default pmwili template (<code>/skins/pmwiki/pmwiki.tmpl</code>)
</p>
<p><strong>1) Include the <code>pmwiki.css</code> file <em>after</em>
the page specific styles</strong> </p>
<p>ie in the template </p>
<pre>  &lt;!--HeaderText--&gt;
  &lt;link rel='stylesheet' href='$SkinDirUrl/pmwiki.css' type='text/css' /&gt;
</pre>
<p>instead of </p>
<pre>  &lt;link rel='stylesheet' href='$SkinDirUrl/pmwiki.css' type='text/css' /&gt;
  &lt;!--HeaderText--&gt;
</pre>
<p>This will allow the <code>pmwiki.css</code> styles to override the
styles included in the page. </p>
<p><strong>2) Include <a class="varlink"
 href="http://pmwiki.org/wiki/PmWiki/BasicVariables#DefaultGroup"><code
 class="varlink">$DefaultGroup</code></a> in side bar and wikicmnds</strong>
</p>
<p><code>&lt;!--wiki:$Group.SideBar </code><strong><code>$DefaultGroup.SideBar</code></strong><code>
$SiteGroup.SideBar--&gt;</code> </p>
<p>and </p>
<p><code>&lt;div id='wikicmds'&gt;&lt;!--wiki:$Group.PageActions </code><strong><code>$DefaultGroup.PageActions</code></strong>
<code>$SiteGroup.PageActions--&gt;</code> </p>
<p><strong>3) Page Actions are displayed twice on a page, but included
into the template using two separate mechanisms</strong><br>
Use the same mechanism (and source) for page actions </p>
<p>At the bottom of the page replace </p>
<pre>      &lt;a href='$PageUrl?action=edit'&gt;$[Edit]&lt;/a&gt; -
      &lt;a href='$PageUrl?action=diff'&gt;$[History]&lt;/a&gt; -
      &lt;a href='$PageUrl?action=print' target='_blank'&gt;$[Print]&lt;/a&gt; -
</pre>
<p>with <code>&lt;!--wiki:$Group.PageActions
$SiteGroup.PageActions--&gt;</code> </p>
<br>
<br>
<br>
</body>
</html>