[pmwiki-users] Looking for a little help with notsosimple skin please
Byron Lunz
byronlunz at gmail.com
Mon Sep 14 15:11:32 CDT 2015
Sorry to be so dense, but what do you mean by "hack to the tmpl file"?
On Mon, Sep 14, 2015 at 1:09 PM, Hans Bracker <design at softflow.co.uk> wrote:
>
> > It's not just ONE page where I need to disable the SideBar, it's
> > any page named "EditMessages" regardless of Group.
>
> pub/css/Name.css will be used for all pages of wiki group called
> 'Name', so that would not help you.
> Instead try add in config.phpsomething like this:
>
> $pagename = ResolvePageName($pagename);
> $name = PageVar($pagename,'$Name');
> $group = PageVar($pagename,'$Group');
> if ($name=='EditMessages')
> $HTMLStylesFmt['skinwidth'] = "
> #header, #main { width: 1200px; } /*set your page width*/
> #content { width: 1150px; } /*adjust main div width*/
> #wikitext { width: 1100px } /*adjust wikitext div width*/
> #sidebar { display: none; }
> ";
>
> so you do not need a css file. $HTMLStylesFmt gets put into the HTML
> head. You still need the hack to the tmpl file for this to work!
>
>
> cheers,
> Hans
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20150914/abadca47/attachment-0001.html>
More information about the pmwiki-users
mailing list