Hi Hegart For this example, I shall assume you wish to create a custom 'Save Wiki' button (which deletes the TOC state tiddlers and saves the Wiki):
1. Open a New Tiddler 2. rename this tiddler to something like: $:/_Buttons/SaveWiki 2. Paste this code into the tiddler: <$button message="tm-save-wiki" param={{$:/config/SaveWikiButton/Template}} tooltip={{$:/language/Buttons/SaveWiki/Hint}} aria-label={{$:/language/Buttons/SaveWiki/Caption}} class=< <tv-config-toolbar-class>>> <$action-deletetiddler $filter="[prefix[$:/state/toc/]]"/> <span class="tc-dirty-indicator"> <$list filter="[<tv-config-toolbar-icons>prefix[yes]]"> {{$:/core/images/save-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> <span class="tc-btn-text"><$text text={{$:/language/Buttons/SaveWiki/Caption}}/></span> </$list> </span> </$button> 4. Save the tiddler 5. This tiddler may be transcluded wherever you wish to place the button -- like so: {{$:/_Buttons/SaveWiki}} You may wish to replace the existing 'Save Wiki' button with your custom version. In this case we need to tag your new '$:/_Buttons/SaveWiki' tiddler with the $:/tags/PageControls system tag -- then delete this tag from the old '$:/core/ui/Buttons/save-wiki' tiddler (to avoid having two buttons.) 1. To create a toggle for your new button -- place this code into a New Tiddler, name it what you wish, and save: <$checkbox tiddler="$:/_Buttons/SaveWiki" tag="$:/tags/PageControls">Toggle Save Wiki Button</$checkbox> 2. To toggle the old button -- open the 'Tools' sidebar tab and use the 'Save Changes' checkbox. regards On Thursday, 17 September 2015 20:29:02 UTC+2, Hegart Dmishiv wrote: > > On Friday, September 18, 2015 at 2:46:44 AM UTC+12, Evolena wrote: > >> This information is already available on every tiddlywiki: go to the >> controlPanel, Info/Basics tab, there is a "Number of overridden shadow >> tiddlers" with an icon that leads to an advanced search filter. >> Or there is a premade "Overridden shadow tiddlers" filter available in >> the Advance search by filter. >> >> However, these filters also include all temp, state and config tiddlers, >> which may be noisy. >> > > Yes, I figured that would be the case when I posted my first mini status > report on Google+ > <https://plus.google.com/104174671305083801031/posts/L9HMpfg9sPG> and I > saw that I had already overridden 7 shadow tiddlers even before I'd done > the first one, as was suggested to me above by *@Andrew*. I guessed that > those first 7 must have been related somehow to the generation of the TOC. > However, that can't be right though. Looking at that stat on my current > live build right now, it shows 6 shadow tiddlers overridden, and that > includes the one I know I did manually. So looks more like you're right > *@Evolena*, it's just random state and config stuff happening in the > background. > > On Friday, September 18, 2015 at 5:45:03 AM UTC+12, Matabele wrote: >> >> Action this immediately prior to saving -- or else you might prefer to >> construct a custom 'Save-Wiki' button, which includes this code: >> >> <$button message="tm-save-wiki" >> param={{$:/config/SaveWikiButton/Template}} >> tooltip={{$:/language/Buttons/SaveWiki/Hint}} >> aria-label={{$:/language/Buttons/SaveWiki/Caption}} >> class=<<tv-config-toolbar-class>>> >> <$action-deletetiddler $filter="[prefix[$:/state/toc/]]"/> >> <span class="tc-dirty-indicator"> >> <$list filter="[<tv-config-toolbar-icons>prefix[yes]]"> >> {{$:/core/images/save-button}} >> </$list> >> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> >> <span class="tc-btn-text"><$text >> text={{$:/language/Buttons/SaveWiki/Caption}}/></span> >> </$list> >> </span> >> </$button> >> > > Wow, that looks awesome *@Matabele*, but I wouldn't even know where to > stick it yet to make it work. It does seem to be a better, more specific > solution than the one I'm using at the moment, suggested by *@Andrew*, > which, as *@Mat* pointed out, prevents anything from $:/temp/ and > $:/state/ from being saved, which could have unintended consequences. I'd > like to try using your suggestion, but where do I put it to make it work? > -- 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/13736620-bde8-4394-9abb-819f8de2c276%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.