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.
Reference¶
Possible subsections: Reference of TypoScript options.
Property
typolink
Data type
Description
Create the target URL via a typolink.
“returnLast = url” and “forceAbsolutePath = 1” are forced
Note: All parameters used to create the link-tag are ignored because of “returnLast = url”
Example:
page.5 = USER
page.5{
userFunc = CDSRC\CdsrcTsredirect\Service\RedirectionService->redirect
typolink{
parameter = 54
}
}
Property
status
Data type
integer / stdWrap
Description
Set the header status code.
Only status from 300 to 399 based on RFC2616
.message (string / stdWrap):
Allow to set an other message to the header redirection.
Example:
page.5{
userFunc = user_cdsrctsredirect->redirect
typolink …
status = 301
status.message = Moved Permanently
status.message.lang.fr = Déplacement définitif
}
Default
302
Example 1¶
This example will simply redirect to the root page:
page.5 = USER
page.5{
userFunc = CDSRC\CdsrcTsredirect\Service\RedirectionService->redirect
typolink{
parameter.data = leveluid:-1
}
}
Example 2¶
This example will logout user if his uid is “2” to :
page.5 = USER
page.5{
userFunc = CDSRC\CdsrcTsredirect\Service\RedirectionService->redirect
if{
value = 2
equals.data = tsfe:fe_users|user|uid
}
typolink{
parameter.data = tsfe:id
parameter.additionalParams = &logintype=logout
}
}