[Zope-CMF] how to include links for members with published in
dex_html
Rolander, Dan
Dan.Rolander@marriott.com
Mon, 30 Apr 2001 10:29:03 -0400
I just customized roster and only changed the verifyPermission value from 1
to 0. A user still has to be logged in to see the roster, but once logged in
all of the listed links are live.
<dtml-in roster mapping size=bs orphan=1 start=qs>
<dtml-let homeUrl="portal_membership.getHomeUrl(id, verifyPermission=0)">
-----Original Message-----
From: marc lindahl [mailto:marc@bowery.com]
Sent: Friday, April 27, 2001 6:39 PM
To: zope-cmf@zope.org
Subject: Re: [Zope-CMF] how to include links for members with published
index_html
...ugly, but this works:
roster.dtml
<snip>
<dtml-let homeUrl="portal_membership.getHomeUrl(id, verifyPermission=0)">
<dtml-let homeFolder="portal_membership.getHomeFolder(id,
verifyPermission=0)">
<tr>
<td> <br> </td>
<td> <dtml-try>
<dtml-if "_.SecurityValidateValue(homeFolder.index_html) or
_.SecurityValidateValue(homeFolder)">
<a href="&dtml-homeUrl;">&dtml-id;</a>
<dtml-else>
&dtml-id;
</dtml-if>
<dtml-except Unauthorized>
&dtml-id;
</dtml-try>
</td>
<snip>
....comments?
_______________________________________________
Zope-CMF maillist - Zope-CMF@zope.org
http://lists.zope.org/mailman/listinfo/zope-cmf
See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
requests