<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 6/09/13 1:12 PM, michael paulukonis
wrote:<br>
</div>
<blockquote
cite="mid:CACGy07rYRvHbfrPfa2v9c8n4fv-NpGu5HHtV=A7rw4xBENt6+w@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>Hrm.<br>
</div>
<br>
</div>
If I put SetTmplDisplay('PageLeftFmt', 0) in config or
the skin, it ALWAYS surpresses the left-content.<br>
<br>
</div>
I would like it to be suppressed when the (:noleft:)
markup is present on the page, or in the header.<br>
</div>
Now, SiteHeader would suggest it is almost always present,
but I want to be able to turn it off by wiki-editing the
appropriate content.<br>
</div>
<br>
</div>
<div>Is there a way to get a Header (Group or Site) enabled for
edit, diff, history, login, etc?<br>
</div>
</div>
</blockquote>
I think it can be done with a modification to the skin. The template
file format includes the option<br>
<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<dt><code class="escaped"><!--function:SomeFunction args--></code></dt>
<dd>
</dd>
<dt>This directive calls a PHP function named "SomeFunction",
passing the current page's name and the text following the
function name as arguments. PHP functions called in this manner
are typically defined in a local customization file.</dt>
<dd><br>
</dd>
<br>
Suppose the template includes:<br>
<br>
<!--function:HideLeftColumn $Group.GroupHeader
Site.GroupHeader--><br>
<br>
The function HideLeftColumn would need to read $Group.GroupHeader
(if it exists) and if it doesn't exist, read Site.GroupHeader (if it
exists). Look for (:noleft:) in the page text and if found, execute
SetTmplDisplay('PageLeftFmt', 0);<br>
<br>
There is a very small performance hit because pmwiki will have to
parse the GroupHeder file twice, but normally this is a small file,
so the extra overhead is very small.<br>
<br>
Note that it will read the GroupHeader even if the body of the page
includes a (:nogroupheader:) directive, which may not be a desired
behaviour.<br>
<br>
I have not tested this, but I think it should work.<br>
<blockquote
cite="mid:CACGy07rYRvHbfrPfa2v9c8n4fv-NpGu5HHtV=A7rw4xBENt6+w@mail.gmail.com"
type="cite">
<div dir="ltr">...<br>
</div>
<div class="gmail_extra"><br clear="all">
<div>-Michael Paulukonis<br>
<a moz-do-not-send="true" href="http://www.xradiograph.com"
target="_blank">http://www.xradiograph.com</a><br>
<a moz-do-not-send="true"
href="http://www.xradiograph.com%5Cinterference"
target="_blank">Interference Patterns (a blog)</a><br>
<a moz-do-not-send="true"
href="https://twitter.com/XraysMonaLisa" target="_blank">@XraysMonaLisa</a><br>
<a moz-do-not-send="true" href="http://michaelpaulukonis.com"
target="_blank">http://michaelpaulukonis.com</a><br>
<br>
<br>
</div>
</div>
</blockquote>
JR<br>
<pre class="moz-signature" cols="72">--
John Rankin
Affinity Limited
</pre>
</body>
</html>