Depending what you want to do, it might be relevant to say you can
decide to do directives (:noleft:) or (:noright:) or (:nofooter:) etc.
for enumerated actions, using this kind of command in config.php :

# For listed actions, don't print out sidebar
global $action;
  if ($action=='edit'|| $action == 'search' || $action == 'imgtpl' ||
$action == 'upload' ) {SetTmplDisplay('PageLeftFmt', 0);
#       SetTmplDisplay('PageFooterFmt', 0);
#       SetTmplDisplay('PageTitleFmt', 0);
  };

(cf. obsolete recipe : http://www.pmwiki.org/wiki/Cookbook/LayoutEditModified)

You might have a look as well to Petko's recipe LocalCSS :
http://www.pmwiki.org/wiki/Cookbook/LocalCSS

Gilles.

2015-09-14 22:09 GMT+02:00 Hans Bracker <[email protected]>:
>
>> 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
>
>
> _______________________________________________
> pmwiki-users mailing list
> [email protected]
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to