Hi Mario I found a version, that works and doesn't modify the listItem. Just > creating a new class. ... but imo its ugly using a second list widget. >
More to the point, it still requires toolbar buttons to have the title prefix "$:/core/ui/Buttons/", which I think is a problem. Perhaps another way to solve this problem would be to have a startup module that detects read-only mode and creates the appropriate "$:/config/ViewToolbarButtons/Visibility/Xxxx" tiddlers as shadow tiddlers (like the info mechanism)? Best wishes Jeremy > > \define config-title() > $:/config/ViewToolbarButtons/Visibility/$(listItem)$ > \end > > \define remove() > [[$(listItem)$]removeprefix[$:/core/ui/Buttons/]] > \end > > \define newClass() > tc-toolbar-$(currentTiddler)$ > \end > > <$list > filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" > variable="listItem"> > <$list filter=<<remove>>> > <$reveal type="nomatch" state=<<config-title>> text="hide" > class=<<newClass>> ><$transclude > tiddler=<<listItem>>/></$reveal></$list></$list> > > -m > -- Jeremy Ruston mailto:[email protected] -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywikidev. For more options, visit https://groups.google.com/d/optout.
