简体   繁体   中英

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. 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.

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.

Example of how to use this hook is in extension "templavoila_framework".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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