TYPO3 EXT tx_news und typoscript USER multi integrations

我只是一个虾纸丫 提交于 2019-12-12 03:39:14

问题


i input multi integrations tx_news elements on my site, via TS: https://docs.typo3.org/typo3cms/extensions/news/AdministratorManual/BestPractice/IntegrationWithTypoScript/Index.html

it works fine! but the ext loaded the full tx_news libs again and again on the Frontpage! That even where the news page will not be used / loaded in FE even where the dough is not needed, the ext is loaded... :/ Thus, the website has become very slow.

how do I include multiple elements?

in the AdminPanel see i the loaded FE code "TYPO3\CMS\Extbase\Core\Bootstrap" is 280 in teh code and "Bootstrap" is over600 in the code

I comment out the info, then the website loads normally. what can i do? Thanks!


回答1:


Just a rewording of your comment. Using a code like this

page.10 = FLUIDTEMPLATE
page.10 {
 variables {
    fo = USER
    fo {
      ...
    }
  }
}

will execute the USER (or any other cObj), no matter if is then used in the template at all. Therefore always a TS like this

lib.fo = USER
lib.fo {
  ...
}

and integrate it into the template by using <f:cObject typoscriptObjectPath="lib.fo" />

Please mark the answer as solution, thanks



来源:https://stackoverflow.com/questions/37902682/typo3-ext-tx-news-und-typoscript-user-multi-integrations

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!