简体   繁体   English

TYPO3-Realurl默认设置是否覆盖?

[英]TYPO3 - Realurl default Settings overwrite?

How can I overwrite the default settings of the TYPO3 extension realurl with my own extension? 如何用自己的扩展名覆盖TYPO3扩展名realurl的默认设置?

this dont work: 这不起作用:

// RealUrl Config File
if (!isset($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['realurl']['configFile'])
|| empty(trim($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['realurl']['configFile']))
) {
$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['realurl']['configFile'] = 'typo3conf/ext/xxx/Resources/Private/Hooks/realurl_conf.php';
}

How can I use this? 如何使用?

Probably the problem is that realurl is inialized and executed very early (it's the first process which needs to translate the speaking url to url parameter which decide which page and which plugin is rendered). 可能的问题是realurl会在很早的时候就被初始化并执行(这是第一个需要将口述的URL转换为url参数来决定要呈现哪个页面和哪个插件的过程)。

Your attempt to modify the assignment which is done normaly in typo3conf/LocalConfiguration.php could not be attached to that file as it is just an array, which gets written anew automatically every now and then. 您尝试修改分配的操作(通常在typo3conf/LocalConfiguration.php完成)无法附加到该文件,因为它只是一个数组,该数组会不时自动重新写入。
You might add that to typo3conf/AdditionalConfiguration.php . 您可以将其添加到typo3conf/AdditionalConfiguration.php

But why don't you request an admin to assign the path to the config-file in your extension in the realurl EM-config by hand? 但是,为什么不要求管理员手动在realurl EM-config中扩展中的配置文件分配路径呢?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM