I'm not sure if you meant $:/state/UserName. I went with $:/status/UserName.
TW5 will let you put widgets inside of stylesheet tiddlers. If you put this
inside a tiddler tagged as a stylesheet...
<$reveal type="nomatch" state="$:/status/UserName" text="MARK">
button[title="Edit this tiddler"] {display:none}
</$reveal>
It would hide all the tiddler edit buttons as long as the signed-in user
didn't match "MARK" (or whatever name you designated).
Does that get you partway there?
Good hunting!
Mark
On Sunday, July 9, 2017 at 3:25:45 PM UTC-7, [email protected] wrote:
>
>
> I'm attempting to use TiddlyWiki as a Gaming notebook for my gaming groups
> campaign.
> The DM needs a way to save notes, but 'obscure' some things until he's
> ready.
>
> First, i'd like to point out that I am unconcerned about multi-user
> writing issues, and actual security isn't my goal.
> We're on a honor system here. clearly if one of my users bypasses the
> system, he's just spoiling the story for himself.
>
> My attempt at accomplishing this was 2 fold:
>
> for subsections of a tiddler, fall back on a simple <$reveal> against the
> $:/state/UserName to make sure it equals the GMs id.
> I THINK I can even do <$reveal>s against a tag called say.. 'GM Only'..
>
> But i'm at a loss for how to stop a player from editing a signed tiddler
> unless they are the signer.
> And hiding a tiddler unless you are the signer.
>
> Does anyone know if this is possible?
> Code is awesome, but even a link to the proper resources would be a great
> help.
>
>
>
>
--
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/881050b2-9f04-48a3-ba06-fa17eb2e5512%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.