Hi! Try this:
<div macro="simpleroles Admin"> all the stuff for admins </div> <div macro="simpleroles !Admin"> all the stuff for everyone else </div> w On 18 okt., 13:53, Scott Masterson <[email protected]> wrote: > Good morning all, > > I'm almost finished building a TW-based quiz for the folks in my > division, and am having a problem with my HideWhenPlugin syntax. I'm > using the SimpleRolesPlugin to determine what content gets seen > (hiding answers from quiz-takers), but when I try to use it with the > HideWhenPlugin, I get "error in macro <<showWhen>>. The goal is to > show the "edit" button for "Admin" roles, but not show it for everyone > else. > > Here's what I have so far (in ViewTemplate): > > <div class='toolbar' macro="showWhen > window.simpleRoles.contains('Admin')"> > <span macro='toolbar collapseOthers collapseTiddler closeTiddler > jump editTiddler'></span> > </div> > <div class='toolbar' macro="else"> > <span macro='toolbar collapseOthers collapseTiddler closeTiddler > jump'></span> > </div> > > Any thoughts? > > v/r, > Scott -- 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.

