Hi Måns,

On Sunday, April 27, 2014 5:03:41 PM UTC+2, Måns wrote:
>
> Hi Ton
>
> Great idea :-)
>
> Thank you very much!
>
> I made it a little more generic:
>
> ''ToggleTabs (from sidebar)''
>
> <$list filter="[tag[hide]!has[draft.of]tag[hide]!tag[$:/tags/SideBar]]">
> <$checkbox tag="$:/tags/SideBar">&nbsp;&nbsp;Show 
> {{!!title}}</$checkbox><br></$list>
> <$list filter="[tag[hide]!has[draft.of]tag[hide]tag[$:/tags/SideBar]]">
> <$checkbox tag="$:/tags/SideBar">&nbsp;&nbsp;Hide 
> {{!!title}}</$checkbox><br></$list>
>
> Now any tab tagged with "hide" will get a checkbox to toggle if it should 
> show up in the sidebar.
>

Nice, I have just implemented it this way in my Read-only demo. 

>
> It would be very nice if it was boiled down to just one checkbox which 
> would toggle the tag "$:/tags/SideBar"  on all tab tiddlers (tagged with 
> "hide") at once.. Would that be possible somehow?
>

I think it must be possible, but at the moment I have no idea how to do 
that.
On the other hand, I like the idea of doing it per tab.
For sure, it depends upon what you want to hide.
In many cases the 'More' tab will be the first tab to hide.
In case you want the ability to switch themes and/or views, you need the 
'Tools' tab. And in case of 'Zoomin' view the 'Open' tab is almost required.
The 'Recent' tab can be handy as well in some cases.

Cheers,

Ton
 

>
> Cheers Måns Mårtensson
>
> Den søndag den 27. april 2014 12.56.39 UTC+2 skrev Ton Gerner:
>>
>> Hi Måns,
>>
>> For hiding tabs:
>>
>> I thought of toggling the tag for a 'tab' tiddler.
>> As an example the 'More' tab in the Sidebar: $:/core/ui/SideBar/More
>> $:/core/ui/SideBar/More is tagged with $:/tags/SideBar
>>
>> To toggle hiding/showing the 'More' tab:
>>
>> 1) Tag $:/core/ui/SideBar/More with 'test'
>>
>> 2) Create a tiddler containing:
>>
>> <$list 
>> filter="[!has[draft.of]tag[test]!tag[$:/tags/SideBar]sort[created]]">
>>
>> <$checkbox tag="$:/tags/SideBar">&nbsp;&nbsp;Check for add 'More' 
>> tab</$checkbox>
>>
>> </$list>
>>
>> <$list 
>> filter="[!has[draft.of]tag[test]tag[$:/tags/SideBar]sort[created]]">
>>
>> <$checkbox tag="$:/tags/SideBar">&nbsp;&nbsp;Uncheck for remove 'More' 
>> tab</$checkbox>
>>
>> </$list>
>>
>> Now you can toggle the $:/tags/SideBar tag on/off with means 
>> hiding/showing the 'More' tab.
>>
>> Cheers,
>>
>> Ton
>>
>> On Saturday, April 26, 2014 12:57:32 PM UTC+2, Måns wrote:
>>>
>>> Hi Ton
>>>
>>> I love your toggle read-only solution!!.
>>>
>>> I was wondering if it is possible to create a global class which could 
>>> be used to hide individual elements in read-only mode.
>>> (I'd like to hide individually selected tabs from the right menu and 
>>> textpassages from individual tiddlers...)
>>>
>>> (Sth. like "hide-if-read-only-class"??)
>>>
>>> I'm struggling to find a way to hide skeeve's (Stephan Hradek's) new 
>>> tiddler button when toggling your $:/_publish checkbox.
>>>
>>> Would you know how to do this?
>>>
>>> Here's my "class inclusion list" (the last one doesn't work. It should 
>>> refer to Hradek's .tw-newtiddler-button class ):
>>>
>>> @@display:none;
>>> svg.tw-image-new-button, svg.tw-image-options-button, 
>>> svg.tw-image-save-button, svg.tw-image-edit-button, 
>>> svg.tw-image-delete-button, svg.tw-image-cancel-button, 
>>> svg.tw-image-done-button, svg.tw-journal-button, svg.tw-crypt-button, 
>>> svg.tw-image-close-others-button, svg.tw-crypt-publish-button, 
>>> svg.tw-image-home-button, button.tw-newtiddler-button {
>>>      display: none;
>>> }
>>> @@
>>>
>>> Cheers Måns Mårtensson
>>>
>>> Den torsdag den 24. april 2014 17.56.13 UTC+2 skrev Ton Gerner:
>>>>
>>>> Hi PJO,
>>>>
>>>> I just finished upgrading my 'TW5 read-only demo' [1] and/or [2].
>>>>
>>>> It is a simplified version without using the ReadOnly theme and the 
>>>> Sidebar is not automatically hidden.
>>>>
>>>> Have fun.
>>>>
>>>> Ton
>>>>
>>>> [1] http://tongerner.tiddlyspot.com/
>>>> [2] http://tw5readonly.tiddlyspot.com/
>>>>
>>>>
>>>> On Tuesday, April 22, 2014 6:25:07 AM UTC+2, PJO wrote:
>>>>>
>>>>> I'm also using Windows 7 64 bit. The button disappears (as does the 
>>>>> settings/control panel button) and others move. However, there's no 
>>>>> cursor 
>>>>> change -- and believe me I've looked for it.
>>>>>
>>>>> Will try another computer & browser. My first concern was to know if 
>>>>> I'd missed a step.
>>>>>
>>>>> Thanks
>>>>> PJO
>>>>>
>>>>> On Tuesday, April 22, 2014 2:42:43 AM UTC+1, Birthe C wrote:
>>>>>>
>>>>>> Hi PJO
>>>>>> The ReadOnly demo works for me using Firefox 28 and Chrome 34.0.1847.116 
>>>>>> m. The buttons get invisible, but moving the cursor to where the buttons 
>>>>>> used to be, changes the cursor, so you know you are at the right place, 
>>>>>> to 
>>>>>> save your changes.
>>>>>>
>>>>>> Birthe
>>>>>>
>>>>>> Den mandag den 21. april 2014 21.21.37 UTC+2 skrev PJO:
>>>>>>>
>>>>>>> Same thing when I download the demo at [1]. selecting the ReadOnly 
>>>>>>> theme causes the left save button to disappear. I'm using Firefox 28.0. 
>>>>>>>
>>>>>>> Same result when Firefox is restarted in safe mode with all plugins 
>>>>>>> disabled. Same result with Chrome 34.0.1847.116 m.
>>>>>>>
>>>>>>> With the ReadOnly theme the highlighting of the "?" icon on the top 
>>>>>>> menu happens when the cursor is an icon to the right of it.
>>>>>>>
>>>>>>> The guide contains some useful information on other buttons and 
>>>>>>> options but a Quickstart ReadOnly step-by-step HowTo would be good -- 
>>>>>>> the 
>>>>>>> minimum to do this and nothing else. 
>>>>>>>
>>>>>>> Many thanks,
>>>>>>> PJO
>>>>>>>
>>>>>>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to