I do realize that the easiest (however most timeconsuming) way to do
this might be to install swichtheme plugin and create a systemtheme
without the elements in question. Create a swichthemebutton in the new
theme and place it in the pagetemplate, making it always visible...
However I would prefer to be able to use the ToggleFullscreen
transclusion, if at all possible...

regards Måns Mårtensson

On 7 Feb., 12:17, Måns <[email protected]> wrote:
> Hi Mario
> I'm believe that I could install all three toggles
> 1)rightsidebar
> 2)leftsidebar
> 3)title
> and write:
> config.options.chkShowRightSidebar= false;
> config.options.chkShowLeftSidebar= false;
> config.options.chkShowTitles= false;
>
> thereby opening the TW without these three elements..
> however I have several other elements that I want to hide - and I
> *have* implemented them in my version of ToggleFullscreen already -
> therefore I wonder if it's possible to invoke them all at once - and
> show the restoreFromFullscreenButton to be able to toggle all elements
> back again - at once. Here's my slightly modded version of
> ToggleFullscreen (transclusion):
>
> /%
> !info
> |Name|ToggleFullScreen|
> |Original Source|http://www.TiddlyTools.com/#ToggleFullScreen|
> |Version|2.0.1|
> |Author|Eric Shulman|
> |License|http://www.TiddlyTools.com/#LegalStatements|
> |~CoreVersion|2.1|
> |Type|transclusion|
> |Description|Create a link that shows/hides sidebars and page headers|
> |Moderation|added tiddlersBar, topMenuL, topMenuR and siteNav to be
> hidden as well|
> |Moderator|Måns Mårtensson|
> |Source|http://tw-abc.tiddlyspot.com/index.html#ToggleFullScreen|
> Usage
> <<<
> {{{
> <<tiddler ToggleFullScreen>>
> <<tiddler ToggleFullScreen with: label altlabel>>}}}
>
> <<<
> Example
> <<<
> {{{<<tiddler ToggleFullScreen with: fullscreen restore>>}}}
> <<tiddler ToggleFullScreen##show with: fullscreen restore>>
> <<<
> !end
>
> !show
> <html><nowiki><a href='javascript:;' title="FULDSKÆRM: slå alle
> elementer bortset fra tiddleren fra"
> onmouseover="
>         this.href='javascript:void(eval(decodeURIComponent(%22(function()
> {try{('
>         +encodeURIComponent(encodeURIComponent(this.onclick))
>         +')()}catch(e){alert(e.description?e.description:e.toString())}})()
> %22)))';"
> onclick="
>         var co=config.options;
>         co.chkFullScreen=!co.chkFullScreen;
>         var showmm=!co.chkFullScreen && co.chkShowLeftSidebar!==false;
>         var showsb=!co.chkFullScreen && co.chkShowRightSidebar!==false;
>         var showtb=!co.chkFullScreen && co.chkDisableTabsBar!==true;
>         var showsn=!co.chkFullScreen && co.chkShowSiteNav!==false;
>         var showtr=!co.chkFullScreen && co.chkShowTopMenuR!==false;
>         var showtl=!co.chkFullScreen && co.chkShowTopMenuL!==false;
>         var showcrumbs=!co.chkFullScreen && co.chkShowBreadcrumbs!==false
>         && config.macros.breadcrumbs &&
> config.macros.breadcrumbs.crumbs.length;
>         var cw=document.getElementById('contentWrapper');
>         var da=document.getElementById('displayArea');
>         var mm=document.getElementById('mainMenu');
>         var sb=document.getElementById('sidebar');
>         var sm=document.getElementById('storyMenu');
>         var bc=document.getElementById('breadCrumbs');
>         var tb=document.getElementById('tiddlersBar');
>         var sn=document.getElementById('siteNav');
>         var tr=document.getElementById('topMenuR');
>         var tl=document.getElementById('topMenuL');
>         if (cw){
>                 var elems=cw.getElementsByTagName('*');
>                 for (var i=0; i<elems.length; i++) if 
> (hasClass(elems[i],'header'))
>                         { 
> elems[i].style.display=co.chkFullScreen?'none':'block'; break; }
>         }
>         if (mm) {
>                 mm.style.display=showmm?'block':'none';
>                 
> da.style.marginLeft=showmm?(co.txtDisplayAreaLeftMargin||''):'1em';
>         }
>         if (sb) {
>                 sb.style.display=showsb?'block':'none';
>                 da.style.marginRight=showsb?
> (co.txtDisplayAreaRightMargin||''):'1em';
>         }
>         if (sm) sm.style.display=!co.chkFullScreen ?'block':'none';
>         if (bc) bc.style.display=showcrumbs?'block':'none';
>         if (tb) tb.style.display=!co.chkFullScreen ?'block':'none';
>         if (sn) sn.style.display=!co.chkFullScreen ?'block':'none';
>         if (tr) tr.style.display=!co.chkFullScreen ?'block':'none';
>         if (tl) tl.style.display=!co.chkFullScreen ?'block':'none';
>
>         this.innerHTML=!co.chkFullScreen?'$1':'$2';
>         var b=document.getElementById('restoreFromFullscreenButton');
>         if (b) removeNode(b);
>         else {
>
> setStylesheet(store.getTiddlerText('ToggleFullScreen##styles'),'fullScreenS 
> tyles');
>                 var
> b=createTiddlyElement(null,'span','restoreFromFullscreenButton','selected') ;
>                 b.innerHTML='&loz;';
>                 b.title='RESTORE: redisplay page header, menu and sidebar';
>                 b.onclick=this.onclick;
>                 document.body.insertBefore(b,null);
>         }
>         return false;
> ">$1</a></html>
> !styles
> #restoreFromFullscreenButton {
>         position:fixed; top:.3em; right:.3em; z-index:10001;
>         cursor:pointer; font-size:8pt; color:ButtonText !important;
>         border:2px outset ButtonFace; padding:0px 3px;
>         background-color:ButtonFace; -moz-appearance:button;}
>
> !end
> %/<<tiddler {{var src='ToggleFullScreen'; src+
> (tiddler&&tiddler.title==src?'##info':'##show');}}
> with:   {{'$'+'1'!='$1'?'$1':'fullscreen'}}
>         {{'$'+'2'!='$2'?'$2':'restore'}}>>
>
> Regards Måns Mårtensson
>
> On 7 Feb., 11:41, PMario <[email protected]> wrote:
>
>
>
> > Hi Måns
> > There is also a toggletitles transclusion. May be combine this also
> > with right and left.
> > Not tested. Just an idea.
> > -M
>
> > On Feb 6, 4:59 pm, Måns <[email protected]> wrote:
>
> > > Hi TwWizards
>
> > > I've installed Eric's ToggleFullSreen transclusion 
> > > (http://www.tiddlytools.com/#ToggleFullScreen) and made a zzConfigOptions
> > > tiddler tagged with systemConfig.
>
> > > config.options.chkFullScreen= true; doesn't work
>
> > > However:
> > > config.options.chkShowRightSidebar= false;
> > > config.options.chkShowLeftSidebar= true;
>
> > > Works very well, if I install ToggleRight or LeftSidebar
> > > transclusions..
>
> > > YS Måns Mårtensson

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to