[pmwiki-users] Hide side bar in "choice" skin

Litows litows4th at hotmail.com
Thu Aug 12 18:24:56 CDT 2010





Brilliant, Dave.
Will try this today. Thank you...

Your work on choice was pretty stunning. You may indeed deserve an iphone. At some point.
Best from Tokyo
lito


> Date: Thu, 12 Aug 2010 10:34:03 -0400
> CC: pmwiki-users at pmichaud.com
> Subject: Re: [pmwiki-users] Hide side bar in "choice" skin
> 
> 
> On 8/12/2010 3:31 AM, Litows wrote:
> > I thought this may be interesting to a few.
> > Has anyone tried to hide the side bar when viewing a choice skin on an
> > iphone.
> Nope -- unless you want to send me an iphone.
> 
> 
> > I have started looking into bits to do this.
> > I am thinking I could combine bits from the iPMWiki Skin with choice.
> >
> > Any leads on options to hide the sidebar in choice. I have not found a
> > good solution so far.
> Depends on what you mean by 'hide'. You can remove the sidebar text, and 
> the search bar:
>    SetTmplDisplay('PageRightFmt',0);
>    SetTmplDisplay('PageSearchFmt',0);
> 
> 
> However, the action bar also lives on the sidebar area in Choice, so, 
> you'd need to remove/relocate that as well. Relocating depends on where 
> you want it to go, so that's up to you; remove it with:
>    SetTmplDisplay('PageActionFmt',0);
> 
> 
> Now you're only left with the border above the sidebar area, and the 
> actual space taken by the sidebar area. You can hide the border:
>    $HTMLStylesFmt['choice'] .= '#right { display: none;} ';
> 
> 
> And, finally you remove the space taken by the sidebar, by expanding the 
> content area:
>    $HTMLStylesFmt['choice'] .= '#content { width: 100%;} ';
> 
> 
>   ~ ~ Dave
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20100813/1e899731/attachment.html>


More information about the pmwiki-users mailing list