[pmwiki-users] noleft in SiteHeader suppresses leftbar except for page-actions (mostly)

michael paulukonis xraysmalevich at gmail.com
Thu Sep 5 20:12:35 CDT 2013


If I put SetTmplDisplay('PageLeftFmt', 0) in config or the skin, it ALWAYS
surpresses the left-content.

I would like it to be suppressed when the (:noleft:) markup is present on
the page, or in the header.
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.

Is there a way to get a Header (Group or Site) enabled for edit, diff,
history, login, etc?

That would be what I'm looking for.

Or is the only option to have two identical skins, one which does not
contain left-content and is used for those actions?
That seems like overkill.

-Michael Paulukonis
<http://goog_2112721603>Interference Patterns (a
@XraysMonaLisa <https://twitter.com/XraysMonaLisa>

Sent from somewhere in the Cloud
(hearthrug, by the fender)

On Thu, Sep 5, 2013 at 3:24 PM, Petko Yotov <5ko at 5ko.fr> wrote:

> The GroupHeader mecanism (include specific pages before or after the
> current page) is only enabled for the actions "browse" (view), "print" and
> "preview" for the current page.
> If you want to apply the (:noleft:) directive to all actions on most
> groups, use this in local/config.php:
>  SetTmplDisplay('PageLeftFmt', 0);
> To enable it in specific groups, just use in the local/Group.php file:
>  SetTmplDisplay('PageLeftFmt', 1);
> Or, you can also use a different skin.
> Petko
> michael paulukonis writes:
>> I've implemented the AllGroupHeader recipe, with the option of using the
>> GroupHeader if present, or the SiteHeader otherwise.
>> I've added a (:noleft:) directive to the SiteHeader, which eliminates the
>> leftbar in almost all cases.
>> In the few instances where a GroupHeader exists, I have added (:noleft:)
>> to the GroupHeader.
>> The few cases where the leftbar re-appears are when page-actions are
>> performed -- Search (results only), History, Login and Edit.
>> Curiously, the leftbar disappears again if "preview" is selected during
>> edit.
>> Why is the leftbar re-appearing?
>> Is it something I've set in my theme that I've forgotten about, some
>> directive I'm missing, some part of core markup that I'm overlooking?
> ______________________________**_________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/**mailman/listinfo/pmwiki-users<http://www.pmichaud.com/mailman/listinfo/pmwiki-users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20130905/7b057686/attachment.html>

More information about the pmwiki-users mailing list