[Zope-CMF] how to include links for members with published index_html

marc lindahl marc@bowery.com
Fri, 27 Apr 2001 18:38:40 -0400


...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?