Category: TYPO3

TYPO3 Logo 0

String comparison in Typoscript through user functions in TYPO3

Generally, string comparison using the on-board tools provided by TypoScript can be quite cumbersome in TYPO3. Although, for instance for globalStrings there exists the possibility to use regular expressions and the * character as wildcard, oftentimes this is not flexible enough to handle more complex conditions, such as combined conditions....

TYPO3 Logo 1

Configure robots.txt for Realurl in TYPO3

In order to configure robots.txt for the Realurl extension in TYPO3 you need to set two things: Add filename for page type 201 in realurl_config.php Add some TypoScript to process robots generation Add filename for page type in realurl_config.php Add TypoScript to process robots.txt generation Be sure to flush the...

TYPO3 Logo 1

Generate hreflang alternate tags in TYPO3

Here is a quick TypoScript snippet that generates hreflang alternate tags in TYPO3. Take note of the following parameters: special.value: set IDs of languages available, e.g. 0 stdWrap.cObject.value: specify the locale corresponding to special.value, e.g. de-AT stdWrap.typolink.additionalParams: specify the special.value values for each locale set TypoScript code to generate hreflang...