Oops. There's supposed to be class identifier for buttons, but it doesn't
seem to work.
This seems to work, if you change the CSS selector:
.tc-tagged-Locked button[title="Edit this tiddler"] {display: none;}
If your TW language isn't English, then you'll need to change the text in
'title="...."' to whatever the text is when you hover over the edit button.
When you tag a tiddler with something like "Locked", TW generates a CSS
class and wraps the tiddler with the format "tc-tagged-<tag name>" where
<tag name> is the name of your tag. Then you can use the generated tag name
inside a stylesheet tiddler (any tiddler tagged with $:/tags/Stylesheet and
containing CSS rules).
-- Mark
On Saturday, March 3, 2018 at 5:08:12 PM UTC-8, passingby wrote:
>
> Mark both of your tips are wonderful. How does the second one work? How
> does the the css class .tc-tagged-Locked work? Second question is, when I
> tried this, it hid all the buttons, even the close button,
>
> On Saturday, March 3, 2018 at 11:40:36 AM UTC-7, Mark S. wrote:
>>
>> Here's another quick way to protect yourself from yourself.
>>
>> Create a tiddler called Locked Styles with the following contents
>>
>> .tc-tagged-Locked button {display: none;}
>>
>> Tag it with $:/tags/Stylesheet
>>
>> Now any tiddler you tag as "Locked" will have the edit button hidden. To
>> get it back you will need to open the stylesheet tiddler and change "none"
>> to "inline".
>>
>> HTH
>> -- Mark
>>
>>
>> On Saturday, March 3, 2018 at 1:48:14 AM UTC-8, Joe Armstrong wrote:
>>>
>>> I want to write protect a tiddler - is this possible - so I cannot
>>> accidently change it
>>> is this possible?
>>>
>>> /Joe
>>>
>>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/08794557-0b7c-45cf-8857-2ab569e64f91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.