That's awesome. Thank you jeremy. So here is what I ended up using:
.my-thing {
display: none;
}
body.tc-dirty .my-thing {
display: inline-block;
}
On Sat, May 14, 2016 at 7:59 AM, Jeremy Ruston <[email protected]>
wrote:
> Hi Infurnoape
>
> I'm trying to create an edit button template that doesn't reveal unless
> the wiki is dirty. Any suggestions?
> The dirty state of the wiki isn't stored in a tiddler for the simple
> reason that if it were, setting the dirty state would change the dirty
> state recursively. Instead, the dirty state is tracked as a "tc-dirty"
> class applied to the body tag.
>
> So, you should be able to use a CSS definition to hide stuff:
>
> body.tc-dirty .my-thing {
> display: block;
> }
>
> Best wishes
>
> Jeremy
>
>
>
> Happy Connecting. Sent from my Sprint Samsung Galaxy S® 5
>
> --
> 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/2jod0282t7fhkpf7ocadt760.1463187074712%40email.android.com
> <https://groups.google.com/d/msgid/tiddlywiki/2jod0282t7fhkpf7ocadt760.1463187074712%40email.android.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/547CA124-491E-4325-85E5-4B77CAABDDE0%40gmail.com
> <https://groups.google.com/d/msgid/tiddlywiki/547CA124-491E-4325-85E5-4B77CAABDDE0%40gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
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/CAL0r7zu8QDWqY5VhXWUYE%2B7wzQFv0y_KXFz5CZ4rj5XMK4FN-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.