These would be easy to implement in MyMenus as menu items, I will see if I can do it for you and if you dont want to use a menu you can take the code from the menu items.
I still need to identify how to trigger the plugin disable button from a menu but a link to the plugin tiddler will allow you to hit the disable button.
Regards
Tony
But only for short now:
I think you missunderstood me a little bit.
For the mentioned 2. Button: I meant to have only ONE Button.
With that I could (I want) to hide /show the mentioned things with only one click.
Why do I want this:
A lot of visitors are irritated of these things. And these things are not for them- only for me, to be able to edit & work with that wiki.
When I go to this wiki I want to show everything mentioned with one click.
And when I leave it, I want to hide everything mentioned with one click.
Do you know what I mean?
Surya
| actions | New in 5.1.14 A string containing ActionWidgets to be triggered when the checkbox is clicked |
<$checkbox tiddler="Tiddlerfoot Menu" tag="$:/tags/mymenusfooter"> Show "Actions-Menu" in Tiddlerfoot</$checkbox>
<$checkbox tiddler="$:/core/ui/SideBar/More" tag="$:/tags/SideBar"> Show "MoreSideBar"</$checkbox>
<$checkbox tiddler="$:/config/ViewToolbarButtons/Visibility/$:/plugins/TWaddle/SideEditor/Button" field="text" checked="show" unchecked="hide" default="hide"> Zeige{{$:/plugins/TWaddle/SideEditor/Button!!caption}} button in Tiddlerview
<$checkbox tiddler="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/delete" field="text" checked="show" unchecked="hide" default="hide"> Show </$checkbox>{{$:/core/images/delete-button}} Delete-Button in Tiddlerview
<$checkbox tiddler="$:/config/Plugins/Disabled/$:/plugins/tobibeer/preview" field="text" checked="yes" unchecked="no" default="no"> Disable Preview?</$checkbox><$checkbox tiddler="Multiple-Actions Menu for Sidebar" menu-item-5="{{$:/core/ui/Buttons/control-panel}}<br/>"> Show "Control-Panel" in Multiple-Actions Menu for Sidebar</$checkbox>
I have a menu from your MyMenus with multiple actions / buttons in it (f.e. the "home"-button, the search-field, the button for the advanced search, the button to close all tiddlers, and some more).
And there I have also the button for the control panel ("Open the ControlPanel"). This button I also want to show/hide in this multiple-actions-menu by checking/unchecking such a checkbox. How can I do this?
<$checkbox tiddler="Mehrfach-Aktionen Menu für die Sidebar" field="menu-item-5" checked="{{$:/core/ui/Buttons/control-panel}}<br/>" unchecked=" " default=" "> "Control-Panel" im Mehrfach-Aktionen-Menu der TopRightBar anzeigen</$checkbox>
<$checkbox tiddler="$:/core/ui/SideBar/More" tag="$:/tags/SideBar"> Die ▼ "MoreSideBar" anzeigen</$checkbox><br/>
<$checkbox tiddler="+Neuer Tiddler von Vorlagen (Menu)" tag="$:/tags/mymenusTopRightBar"> + "+Neuer Tiddler von Vorlagen (Menu)" inTopRightSideBar anzeigen</$checkbox><br/>
<$checkbox tiddler="Tiddlerfuß Menu" tag="$:/tags/mymenusfooter"> "Aktionen-Menu" im Tiddlerfuß anzeigen</$checkbox><br/>
<$checkbox tiddler="Mehrfach-Aktionen Menu für die Sidebar" field="menu-item-4" checked="{{$:/core/ui/Buttons/control-panel}}<br/>" unchecked=" " default=" "> "Control-Panel" im Mehrfach-Aktionen-Menu der TopRightBar anzeigen</$checkbox><br/>
<$checkbox tiddler="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/edit" field="text" checked="show" unchecked="hide" default="hide"> Zeige </$checkbox>{{$:/core/images/edit-button}} Editier-Button in Tiddlerview<br/>
<$checkbox tiddler="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/clone" field="text" checked="show" unchecked="hide" default="hide"> Zeige </$checkbox>{{$:/core/images/clone-button}} Klonen-Button in Tiddlerview<br/>
<$checkbox tiddler="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/delete" field="text" checked="show" unchecked="hide" default="hide"> Zeige </$checkbox>{{$:/core/images/delete-button}} Löschen-Button in Tiddlerview<br/>
<$checkbox tiddler="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/more-tiddler-actions" field="text" checked="show" unchecked="hide" default="hide"> Zeige </$checkbox>{{$:/core/images/down-arrow}} Mehr-Button in Tiddlerview<br/>
<$checkbox tiddler="$:/config/ViewToolbarButtons/Visibility/$:/plugins/TWaddle/SideEditor/Button" field="text" checked="show" unchecked="hide" default="hide"> Zeige{{$:/plugins/TWaddle/SideEditor/Button!!caption}} button in Tiddlerview<br/>
I think you must use a button an one setfieldwidget per state field. And revealwidget to make an on and an off button appear as one. I think using my
And adding all the setfieldwidhets is a good way.
<$button class='tc-btn-invisible'>
<$reveal type='match' state='$:/plugins/tobibeer/preview/defaults/exclude' text='[all[tiddlers]]'>
<input type='checkbox'/>
<$fieldmangler tiddler="$:/core/ui/SideBar/More">
<$action-sendmessage $message='tm-add-tag' $param="$:/tags/SideBar"/>
</$fieldmangler>
<$action-setfield $tiddler='$:/plugins/tobibeer/preview/defaults/exclude' text='[is[system]] [all[shadows]] [!has[text]]'/>
</$reveal>
<$reveal type='nomatch' state='$:/plugins/tobibeer/preview/defaults/exclude' text='[all[tiddlers]]'>
<input type='checkbox' checked/>
<$fieldmangler tiddler="$:/core/ui/SideBar/More">
<$action-sendmessage $message='tm-remove-tag' $param="$:/tags/SideBar"/>
</$fieldmangler>
<$action-setfield $tiddler='$:/plugins/tobibeer/preview/defaults/exclude' text='[all[tiddlers]]'/>
</$reveal>
</$button><$button class='tc-btn-invisible'>
<$reveal type='match' state='$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/edit' text='hide'>
<input type='checkbox'/>
<$button class='tc-btn-invisible'>
<$reveal type='match' state='$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/clone' text='hide'>
<input type='checkbox'/>
<$fieldmangler tiddler="$:/core/ui/SideBar/More">
<$action-sendmessage $message='tm-add-tag' $param="$:/tags/SideBar"/>
</$fieldmangler>
<$fieldmangler tiddler="+Neuer Tiddler von Vorlagen (Menu)">
<$action-sendmessage $message='tm-add-tag' $param="$:/tags/mymenusTopRightBar"/>
</$fieldmangler>
<$fieldmangler tiddler="Tiddlerfuß Menu">
<$action-sendmessage $message='tm-add-tag' $param="$:/tags/mymenusfooter"/>
</$fieldmangler>
<$action-setfield $tiddler='$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/edit' text='show'/>
</$reveal>
<$reveal type='nomatch' state='$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/edit' text='hide'>
<input type='checkbox' checked/>
<$action-setfield $tiddler='$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/clone' text='show'/>
</$reveal>
<$reveal type='nomatch' state='$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/clone' text='hide'>
<input type='checkbox' checked/>
<$fieldmangler tiddler="$:/core/ui/SideBar/More">
<$action-sendmessage $message='tm-remove-tag' $param="$:/tags/SideBar"/>
</$fieldmangler>
<$fieldmangler tiddler="+Neuer Tiddler von Vorlagen (Menu)">
<$action-sendmessage $message='tm-remove-tag' $param="$:/tags/mymenusTopRightBar"/>
</$fieldmangler>
<$fieldmangler tiddler="Tiddlerfuß Menu">
<$action-sendmessage $message='tm-remove-tag' $param="$:/tags/mymenusfooter"/>
</$fieldmangler>
<$action-setfield $tiddler='$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/edit' text='hide'/>
<$action-setfield $tiddler='$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/edit' text='hide'/>
</$reveal>
</$button>
<$checkbox tiddler="Mehrfach-Aktionen Menu für die Sidebar" field="menu-item-4" checked="{{$:/core/ui/Buttons/control-panel}}<br/>" unchecked=" " default=" "> "Control-Panel" im Mehrfach-Aktionen-Menu der TopRightBar anzeigen</$checkbox>