<div dir="ltr">Thanks -- I'll give it a try this weekend.<br></div><div class="gmail_extra"><br clear="all"><div>-Michael Paulukonis<br><a href="http://www.xradiograph.com" target="_blank">http://www.xradiograph.com</a><br>
<a href="http://goog_2112721603" target="_blank"></a><a href="http://www.xradiograph.com%5Cinterference" target="_blank">Interference Patterns (a blog)</a><br><a href="https://twitter.com/XraysMonaLisa" target="_blank">@XraysMonaLisa</a><br>
<a href="http://michaelpaulukonis.com" target="_blank">http://michaelpaulukonis.com</a><br><a href="http://www.BestAndroidResources.com" target="_blank"></a><br><br>Sent from somewhere in the Cloud<br>(hearthrug, by the fender)<br>
</div>
<br><br><div class="gmail_quote">On Thu, Sep 5, 2013 at 10:28 PM, John Rankin <span dir="ltr"><<a href="mailto:john.rankin@affinity.co.nz" target="_blank">john.rankin@affinity.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div class="im">
<div>On 6/09/13 1:12 PM, michael paulukonis
wrote:<br>
</div>
<blockquote 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></div>
I think it can be done with a modification to the skin. The template
file format includes the option<br>
<br>
<dt><code><!--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 type="cite">
<div dir="ltr">...<br>
</div><div class="im">
<div class="gmail_extra"><br clear="all">
<div>-Michael Paulukonis<br>
<a href="http://www.xradiograph.com" target="_blank">http://www.xradiograph.com</a><br>
<a href="http://www.xradiograph.com%5Cinterference" target="_blank">Interference Patterns (a blog)</a><br>
<a href="https://twitter.com/XraysMonaLisa" target="_blank">@XraysMonaLisa</a><br>
<a href="http://michaelpaulukonis.com" target="_blank">http://michaelpaulukonis.com</a><br>
<br>
<br>
</div>
</div>
</div></blockquote><span class="HOEnZb"><font color="#888888">
JR<br>
<pre cols="72">--
John Rankin
Affinity Limited
</pre>
</font></span></div>
<br>_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
<br></blockquote></div><br></div>