yes.
I used this on a project.
First make a ConfigTweak tiddler, tag it systemConfig.Then add the following

if(config.options.txtUserName != "YourName") {
        readOnly = true;
        showBackstage = false;
}

Subsititure YourName for the Username you are using to construct the
TW. All editing features will be removed when viewed by anyone else.

A word of caution. You can get locked out. To get back in, have
another TW open and change the UserName in that TW, save, refresh,
then open you locked TW

You can use HideWhen plugin [1] too
Add something like this to your PageTemplate;

<div macro="hideWhen readOnly"><div class='admin' refresh='content'
tiddler='Admin'></div>

and make an Admin tiddler with your controls. It won't be seen by
anyone who is not using the same user name as you (specified in the
ConfigTweaks tiddler)

Alex
[1] http://mptw.tiddlyspot.com/#HideWhenPlugin



On 25 May 2011 11:32, DAXU <[email protected]> wrote:
> Hi,
> I am quite new to tiddlyWiki. Is there a way that I can hide contents
> based on some property (e.g. userid, group id etc)?
>
> Many Thanks
>
> Jerry
>
> --
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/tiddlywiki?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to