You are here: English > The Docu > Articles > Content Parts > Email form generator[OLD] > Custom Redirection

Custom Redirection

email_redir1.png
Fig. 1 Click to enlarge
As you have read in the tutorial for the e-mail content part you can create your own redirection to individual success and error pages. 

The example in the tutorial was:

IH|redirect|0||10,100|http://www.apple.com|0
IH|redirect_error|0||10,100|http://www.microsoft.com|0
 





To create your own redirection, read the following steps.


Create an new structure level, name it e.g. hidden, set this structure level to hidden, visible and public. This level needs no alias. (see Fig.1)

In this strukture level you now create 2 new levels, the first one you call success, the second one error. Here you should also define aliases e.g. success and error. Also set them to hidden, visible and public.

Now your stucture levels for this area should be looking like this:



Now go to the article section and create an article in each of you newly created structure levels: success and error.

The article for the success page could look like this:

Your mail was successfully sent. We will answer you as soon as possible.


The article for an error page might look like this:

Sorry, we could not find your entries in all required fields. All fields marked with a are required!


In the editing mode your article might look like this:

Sorry, we could not find your entries in all required fields. All fields marked with a {IMAGE:../img/article/fill_in_here.gif} are required!
[BACK]{IMAGE:back_link_.engif}[/BACK]


Please return to your E-mail form and edit the 2 lines as shown below. 

These both lines should look like this:

IH|redirect|0||10,100|http://www.your_domain.com/index.php?success|0
IH|redirect_error|0||10,100|http://www.your_domain.com/index.php?error|0




Article created: Friday, 27. August 2004
Last Changes: Tuesday, 4. January 2011