[Setup] Form prior redirection

Denis Bitouzé dbitouze at wanadoo.fr
Thu Mar 17 14:51:32 UTC 2011


Le jeudi 17/03/11 à 14h31,
Raphael Ritz <r.ritz at 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! 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?

Thanks!
-- 
Denis


More information about the Setup mailing list