[Zope-CMF] how to include links for members with published in
dex_html
marc lindahl
marc@bowery.com
Mon, 30 Apr 2001 13:13:21 -0400
The thing with that method is, you get live links that will give you
permission errors when clicked - I tried that. If the user's index_html is
still private, you get a permission error. I wanted the links to be only
live if they are followable.
> From: "Rolander, Dan" <Dan.Rolander@marriott.com>
> Date: Mon, 30 Apr 2001 10:29:03 -0400
> To: 'marc lindahl' <marc@bowery.com>, zope-cmf@zope.org
> Subject: RE: [Zope-CMF] how to include links for members with published in
> dex_html
>
> 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
>
> _______________________________________________
> 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