[Zope-CMF] RE: showing an item only to selected groups (solved :-)

Roel Van den Bergh roel@planetinterior.com
Thu, 5 Dec 2002 18:23:28 +0100


Solved my question about showing/hiding static content based on 'Groups'
added with NuxUserGroups with the help of Florent Guillaume
Tnx to all who helped me

This code seems to be a bit wild but I couldn't get it working otherwise


<dtml-let groepen="AUTHENTICATED_USER.getGroups()">
<dtml-in groepen>
<dtml-let groep=sequence-item>
<dtml-if expr="groep <> 'Scenario'">
<dtml-else>
<a href="Scenario/"><img src="images/buttons/button_04.jpg" alt="Scenario"
border="0"></a>
</dtml-if>
</dtml-let>
</dtml-in>
</dtml-let>