您可以在 RealURL 配置中删除控制器和/或操作。下面是一个示例,它从详细链接中删除了动作和控制器。
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array (
'_DEFAULT' => array (
'init' => array (
'enableCHashCache' => '1',
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => '1',
'enableUrlEncodeCache' => '1',
),
'fixedPostVars' => array (
'yourDetailConfiguration' => array(
array(
'GETvar' => 'tx_yourext_pi[action]',
'valueMap' => array(
'detail' => '',
),
'noMatch' => 'bypass'
),
array(
'GETvar' => 'tx_yourext_pi[controller]',
'valueMap' => array(
'Event' => '',
),
'noMatch' => 'bypass'
),
array(
'GETvar' => 'tx_yourext_pi[event]',
'lookUpTable' => array(
'table' => 'tx_yourext_domain_model_yourtable',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-'
),
'languageGetVar' => 'L',
'languageExceptionUids' => '',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l10n_parent',
'autoUpdate' => 1,
'expireDays' => 180,
)
)
),
'123' => 'yourDetailConfiguration',
),
);
请注意,您必须将每个页面 UID与您的插件(在本例中为第 123 页,其中包含一个详细信息页面)分配给所需的配置。
有关这方面的更多信息可以在新闻扩展的扩展手册中找到。在那里,您还将找到上述解决方案的替代方案,用于删除控制器/动作。