I can think of three possibilities... but I'm sure there are more:

1. Very easy - quite "unsecure": Do it with javascript.
When the user submits the form, check the form value and set the form action to one of the four URLs.
"Unsecure" because it won't work if JavaScript is turned off.

2. Quite easy but a bit ugly + requires special template: Do it with a scriptlet. Create a specific template for that page, set the four links in the page settings. Then have the form trigger that page again and let a scriptlet check the request parameters and then redirect to one of the four links depending on the parameters found. If no parameters are present simply display the page with the form. You will need to do this in the page template (i.e. top level template) because as far as I know you cannot redirect the request to other URLs in subtemplates.

3. More complicated but probably the "proper" Magnolia way to do it: Use a Magnolia "page"
Have a look at "pages" concept and how they are configured:
        - e.g. config: /modules/adminInterface/pages/...
        - info.magnolia.module.admininterface.PageMVCHandler

Cheers,
Will

On 29.09.2008, at 16:02, Leviter wrote:


Hey,

I have created a page with some form fields and also 4 links to other pages on it (the links are set using a dialog). Depending on what the user fills in on the form... he should be redirected to one of the four pages set in
the dialog.

Is there any 'standard' way to do this? Can somebody give me a push in the
right direction?

Thanks in advance,
-- Marcel
--
View this message in context: 
http://www.nabble.com/Dispatching-from-one-%28form%29page-to-one-of-four.-tp19724471p19724471.html
Sent from the Magnolia - User mailing list archive at Nabble.com.


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------

Reply via email to