How can I share my tiddlers with others, without them being able to open and edit them (equivalent of pdf benefits versus word doc)?
But my lateral thought is this: I assume its simply modifying "configuration" settings tiddlers?
Would it be possible to do something like create a JSON of those settings tiddlers that on import would do the job? I guess it could be a bit dangerous. But what I was thinking of was a situation where a user makes a copy for online use and simply imports that JSON to a TW (without the plugin) to make it read only? Not even sure it would work.
Edit 2: see updated code in my post below<$button>
<$action-setfield $tiddler="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/control-panel" text="hide"/>
<$action-setfield $tiddler="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/import" text="hide"/>
<$action-setfield $tiddler="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/more-page-actions" text="hide"/>
<$action-setfield $tiddler="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/clone" text="hide"/>
<$action-setfield $tiddler="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-here" text="hide"/>
<$action-setfield $tiddler="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-tiddler" text="hide"/>
<$action-setfield $tiddler="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/save-wiki" text="hide"/>
<$action-setfield $tiddler="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/more-tiddler-actions" text="hide"/>
<$action-setfield $tiddler="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/edit" text="hide"/>
<$action-setfield $tiddler="$:/core/ui/SideBar/More" tags="-$:/tags/SideBar"/>
<$action-setfield $tiddler="$:/core/ui/SideBar/Tools" tags="-$:/tags/SideBar"/>
<$action-setfield $tiddler="$:/core/ui/ViewTemplate/tags" tags="-$:/tags/ViewTemplate"/>
Hide Admin Controls
</$button>
<$button>
<$action-setfield $tiddler="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/control-panel" text="show"/>
<$action-setfield $tiddler="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/import" text="show"/>
<$action-setfield $tiddler="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/more-page-actions" text="show"/>
<$action-setfield $tiddler="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/clone" text="show"/>
<$action-setfield $tiddler="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-here" text="show"/>
<$action-setfield $tiddler="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-tiddler" text="show"/>
<$action-setfield $tiddler="$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/save-wiki" text="show"/>
<$action-setfield $tiddler="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/more-tiddler-actions" text="show"/>
<$action-setfield $tiddler="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/edit" text="show"/>
<$action-setfield $tiddler="$:/core/ui/SideBar/More" tags="$:/tags/SideBar"/>
<$action-setfield $tiddler="$:/core/ui/SideBar/Tools" tags="$:/tags/SideBar"/>
<$action-setfield $tiddler="$:/core/ui/ViewTemplate/tags" tags="$:/tags/ViewTemplate"/>
Show Admin Controls
</$button>
{{$:/core/ui/Buttons/save-wiki}}<$action-setfield $tiddler="$:/core/ui/SideBar/More" tags="-$:/tags/SideBar"/>
IF there were a setting included to hide Advanced Search buttons then it would make it harder to find it.
What would the setting be for that?
<$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class="tc-btn-invisible">
<$action-setfield $tiddler="$:/temp/advancedsearch" text={{$:/temp/search}}/>
<$action-setfield $tiddler="$:/temp/search" text=""/>
<$action-navigate $to="$:/AdvancedSearch"/>
{{$:/core/images/advanced-search-button}}
</$button> <$button to="$:/AdvancedSearch" tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class="tc-btn-invisible">
{{$:/core/images/advanced-search-button}}
</$button>Its interesting to play with how much you can shut off and still have a perfectly functioning TW for readers.
... I was using it in a TiddlyWiki with the "zoomin" Story View switched on.
TT: IF there were a setting included to hide Advanced Search buttons then it would make it harder to find it. What would the setting be for that?
S: I think you could remove the following sections from "$:/core/ui/SideBarLists":
<$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class="tc-btn-invisible">
<$action-setfield $tiddler="$:/temp/advancedsearch" text={{$:/temp/search}}/>
<$action-setfield $tiddler="$:/temp/search" text=""/>
<$action-navigate $to="$:/AdvancedSearch"/>
{{$:/core/images/advanced-search-button}}
</$button><$button to="$:/AdvancedSearch" tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class="tc-btn-invisible">
{{$:/core/images/advanced-search-button}}
</$button>
However, I found no easy way to toggle this setting...
<$action-setfield $tiddler="$:/config/ViewToolbarButtons/Visibility/$:/core/images/chevron-left" text="hide"/>
<$action-setfield $tiddler="$:/config/ViewToolbarButtons/Visibility/$:/core/images/chevron-right" text="hide"/>
Thist doesn't seem to work.
<$action-setfield $tiddler="$:/core/ui/TopBar/menu" tags="-$:/tags/TopRightBar"/>I'd like to use the hider function, bu am not sure how to hide other buttons that are visible from plugins. Currently, the chevron-left and chevron-right buttons are visible from the SideEditor plugin. How do I tweak the hider code to turn off these buttons?
<$action-setfield $tiddler="$:/plugins/TWaddle/SideEditor/Button" tags="-$:/tags/ViewToolbar"/><$action-setfield $tiddler="$:/plugins/TWaddle/SideEditor/Button" tags="$:/tags/ViewToolbar"/> I'd like to use the hider function, bu am not sure how to hide other buttons that are visible from plugins. Currently, the chevron-left and chevron-right buttons are visible from the SideEditor plugin. How do I tweak the hider code to turn off these buttons?
<$action-setfield $tiddler="$:/config/ViewToolbarButtons/Visibility/$:/plugins/TWaddle/SideEditor/Button" text="hide"/><$action-setfield $tiddler="$:/config/ViewToolbarButtons/Visibility/$:/plugins/TWaddle/SideEditor/Button" text="show"/>