DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Redirection mechanism

The Display Controller comes with a flexible redirection mechanism whose properties are described earlier <configuration-typoscript-properties-redirect>. Here is an example configuration:

plugin.tx_displaycontroller.redirect {
        enable = 1
        condition {
                value.data = register:sds.totalCount
                equals = 1
        }
        url {
                parameter = 15
        }
}

In this example, the redirection is first enabled. Then the condition for the redirection to actually take place is set. It will happen when the total number of records in the SDS is equals to 1. Finally the url to redirect to is defined as a typolink to page 15.

Don't forget that TypoScript is inherited along the page tree. So a redirection configuration defined at some point may not be desirable at some other point down the page tree. Either disable it:

plugin.tx_displaycontroller.redirect.enable = 0

or cancel it altogether:

plugin.tx_displaycontroller.redirect >