Hi whatever,
Some answers...
1) Is the EvalifyPlugin required?
No, not unless you want to display the user role on TiddlySpace as I
did. In a Non-TiddlySpace-TiddlyWiki you can use the tiddler macro
like so...
Tiddler:GetRole
<<tiddler GetRole##OUT with {{window.simpleRoles[0];}}>>/%
!OUT
$1
!END%/
2) Because I keep getting errors.
Where, when, which?
3) Also, I'm not clear on how to assign roles.
Simply put the user-names into the corresponding sections of your
SimpleRolesConfig tiddler.
4) Do I need to use something like <<option simpleUserRole>>? And
where do I put that?
Of course not, or do you want your users to choose their own rules?
Again, you assign roles to users in SimpleRolesConfig.
5) And how do I define, to which tiddlers a User has access as opposed
to an Admin or PowerUser?
You would have to use conditional templating as in the example. You
could also define different restrictions for search with
YourSearchPlugin or GotoPlugin... and then include those
conditionally.
As an example using HideWhenPlugin...
<span macro="showWhen window.simpleRoles.contains('Admin')">
<span id='mainMenu' refresh='content' tiddler='MainMenuAdmin'></span>
</span>
<span macro="else">
<span id='mainMenu' refresh='content' tiddler='MainMenu'></span>
</span>
The same way you could hide the entire tiddler content.
6) Do I need to create tiddlers with usernames?
Not when it comes to roles, no.
You could, however, tag tiddlers with a role - like "Admin" and then
use a conditional statement to check if the role is assigned to the
current tiddler AND the current user.
Cheers, Tobias.
--
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.