On 3/17/11 3:51 PM, Denis Bitouzé wrote:
Le jeudi 17/03/11 à 14h31,
Raphael Ritz<r.r...@biologie.hu-berlin.de>  a écrit :

In a default Plone 'join' is handled as a user action.
It is defined on the actions tool ('portal_actions').

If you go to the ZMI ->  portal_actions and select
the 'user' category you will find under 'join' the
definition of the action.
Change the URL (Expression) in that definition to
point wherever you want.

Nice alternative solution!

This is a core feature of CMF - the framework Plone is build on top of.

Nevertheless, with the Bastien's solution I
could redirect join_form to one of 2 forms, depending the user is
anonymous or not:

<tal:block condition="isAnon">

<tal:redirect define="dummy
python:request.RESPONSE.redirect(portal_url+'/forms/form_anon')" />

</tal:block>

<tal:block condition="not: isAnon">

<tal:redirect define="dummy
python:request.RESPONSE.redirect(portal_url+'/forms/form_auth')" />

</tal:block>

Is there a way to achieve the same result with the method you propose?

Yes, you can define the action multiple times but using
different URL expressions and set conditions to control
which one is available when. The id of the action will
have to be different but that doesn't matter.

Raphael


Thanks!


_______________________________________________
Setup mailing list
Setup@lists.plone.org
https://lists.plone.org/mailman/listinfo/setup

Reply via email to