To insert content on a page based on conditional statements of user and group membership, use the pt:standard.choose, pt:standard.when and pt:standard.otherwise tags.
<pt:standard.choose xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'> <pt:standard.when pt:test="stringToACLGroup('user=userid1,userid2,...;group=groupid1,groupid2,groupid3;').isMember($currentuser) xmlns:pt='http://www.Plumtree.com/xmlschemas/ptui/'> ... content ... </pt:standard.when> <pt:standard.otherwise xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'> ... default content ... </pt:standard.otherwise> </pt:standard.choose>For example:
<pt:standard.choose xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'> <pt:when pt:test="stringToACLGroup('user=1;').isMember($currentuser)" xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'> <title>welcome administrator</title></head> ... secret administrator content ... </pt:standard.when> <pt:standard.when pt:test="stringToACLGroup('user=200,201;group=200;').isMember($currentuser)" xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'> <title>the 200 club</title></head> ... content only group 200 or users 200 and 201 can see ... </pt:standard.when> <pt:standard.otherwise xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'> <title>everyone else</title></head> ... content any user can see ... </pt:standard.otherwise> </pt:standard.choose>
<pt:standard.choose> <pt:standard.when pt:test="isGuest($currentuser)"> ... guest user content ... </pt:standard.when> <pt:standard.otherwise> ... logged in user content ... </pt:standard.otherwise> </pt:standard.choose>