[pmwiki-users] Looking for a little help with notsosimple skin please

Hans Bracker design at softflow.co.uk
Mon Sep 14 15:09:25 CDT 2015


> 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                         




More information about the pmwiki-users mailing list