简体   繁体   English

使用核心钩子从扩展名修改TYPO3前端TypoScript

[英]Modify TYPO3 Frontend TypoScript from extension, using core hook

I've tryied a lot of things, and hooks for modifying the TypoScript configuration from and handmade extension. 我尝试过很多东西,并且用来修改TypoScript配置和手工扩展。 Here's the hooks I tested : 这是我测试过的钩子:

  • tslib_fe::initFEuser()
  • tslib_fe::checkDataSubmission()
  • tslib_fe::configArrayPostProc()
  • t3lib_pagerenderer::renderPreProcess()
  • t3lib_pagerenderer::renderPostProcess()

I try to modify the TypoScript configuration by $ref->tmpl->setup and $GLOBALS['TSFE']->tmpl->setup inside pagerenderer and tslib_fe hooks. 我尝试通过$ref->tmpl->setup$GLOBALS['TSFE']->tmpl->setup在pagerenderer和tslib_fe hooks中修改TypoScript配置。

I've looking for other usefull hooks but not found. 我正在寻找其他有用的钩子,但没找到。
If someone have an idea, a clue or any helping information, drop me a word. 如果有人有想法,线索或任何帮助信息,请告诉我一句话。

With hook "includeStaticTypoScriptSourcesAtEnd" you can include any TS at the end of Typoscript stack so you can effectivly overwrite any setting. 使用钩子“includeStaticTypoScriptSourcesAtEnd”,您可以在Typoscript堆栈的末尾包含任何TS,这样您就可以有效地覆盖任何设置。

Example of how to use this hook is in extension "templavoila_framework". 如何使用此钩子的示例在扩展名“templavoila_framework”中。

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

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