[userFunc = \Vendorname\Extension\UserConditions\user_translationExistsNot()] && [globalVar = GP:L > 0]
# Add canonical tag
# and/or display a notice, that the current page is not translated yet and the original contents are displayed
[global]
- put the user conditons (two php files) to EXT:extension/Classes/UserConditions/
- update php namespace
- Include the files in ext_localconf.php:
$extensionPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY);
// User Conditions
require_once($extensionPath . 'Classes/UserConditions/user_translationExists.php');
require_once($extensionPath . 'Classes/UserConditions/user_translationExistsNot.php');