Hi Eric et al,

Thanks for this suggestion, works really well.  For what it is worth, I 
modified it a bit by *not* tagging [[ShowSaveWikiButton]] with TopRightBar. 
My workflow then becomes: (1) open the ShowSaveWikiButton tiddler (2) close 
the sideba (3) save the wiki and (4) reload to test. Doing this, I don't 
have a save button in my TopRightMenu, which I don't want, and my TW opens 
with the sidebar closed, which I do want.

However - this is annoying! I don't want to think about how I want my TW to 
look when I close/save it (as if I ever actually close it on purpose). How 
can the default view of TW be set to that sidebar is closed? Can't be 
difficult or impossible.

Along these lines: How can I have the TW behave differently, depending if 
it is called using http:// (thus, by a reader) or using file:/// (thus, by 
an editor or writer)? I'd like to provide entirely different interfaces 
(i.e. Themes) to satisfy these two very different audiences.

Thanks!

//steve.


On Friday, September 11, 2015 at 4:53:56 PM UTC-4, Eric Shulman wrote:
>
> On Friday, September 11, 2015 at 1:45:12 PM UTC-7, Graeme Henson wrote:
>>
>> Jumping off of this recent post since it's semi-related, How would you go 
>> about hiding the entire Sidebar itself by default? I've been googling 
>> around trying to find some method for it using plug-ins and such, but I 
>> can't tell if it's older code that doesn't apply or if I'm entering in the 
>> information wrong. Is there a ShadowTiddler somewhere where I can toggle 
>> this on-off?
>>
>
> The current state of the sidebar is stored in a tiddler 
> [[$:/state/sidebar]].  This tiddler is saved with the document, so if you 
> close the sidebar, and then save the document with the sidebar closed, it 
> will still be closed when you reload the document later.  However, closing 
> the sidebar hides the "save changes" button, so saving with the sidebar 
> closed is problematic.  To work around this, you can add the save button 
> directly to the "TopRightBar" in the page layout, so that it will still be 
> available after closing the sidebar.
>
> 1) create a new tiddler (e.g., [[ShowSaveWikiButton]])
> 2) Enter the following content:
>    {{$:/core/ui/Buttons/save-wiki}}
> 3) tag it with "$:/tags/TopRightBar"
>
> This will cause the "save changes" button to be displayed in the upper 
> right corner of the page (right next to the sidebar toggle button).  You 
> can then proceed to close the sidebar and click the save button.  Q.E.D. 
>
> enjoy,
> -e
> Eric Shulman
> ELS Design Studios
> TiddlyTools - "Small Tools for Big Ideas!"
> InsideTiddlyWiki: The Missing Manuals
>
> YOUR DONATIONS ARE VERY IMPORTANT!
> HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
>    http://TiddlyTools.github.com/fundraising.html#MakeADonation
>
> Professional TiddlyWiki Consulting Services...
> Analysis, Design, and Custom Solutions:
>    http://www.TiddlyTools.com/#Contact
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fa470d90-5c56-4472-90ec-8916d243c0db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to