How to disable an extension for one page in TYPO3

余生长醉 提交于 2019-12-11 07:30:13

问题


There is a conflict between two installed extentions in one page. I want to disable one of the extentions only for this specific Page.

Is there a way to accomplish this? Maybe somehow in Backend Templates?


回答1:


On the page where you want to disable the extension you can create a template where you disable the extension by TypoScript:

plugin.tx_badextension >
tt_content.list.20.tx_badextension >

This works recursive, that means all sub-pages of the page where this snippet is included in a template are concerned too. If you want to enable the plugin on a sub-page again, you've to include there the TypoScript of the extension.

It's also possible to include the extension's TypoScript only on a few pages and not in the root-page. But the configuration is always inherited and has to be inversed if the plugin shall be activated or deactivated on sub-pages.




回答2:


No, there are no way. Extensions can only disable for the complete TYPO3 installation.

EDIT: Here is a way to disable this extension for a single pages like news page with typoscript.

// Skip tx_jhopengraphprotocol for single news view, as EXT:news adds dedicated og-properties
[globalVar = GP:tx_news_pi1|news > 0]
    temp.tx_jhopengraphprotocol >
    page.669 >
[global]



回答3:


If you look in the setup.txt https://github.com/jonathanheilmann/ext-jh_opengraphprotocol/blob/master/Configuration/TypoScript/setup.txt

You should be able to deactivate it with

temp.tx_jhopengraphprotocol >
page.669 >

In your TypoScript for that page.




回答4:


Depending on the way the extensions are included you might be able to deactivate the rendering of one extension.

Most extensions are configured in typoscript, where you can clear the corresponding part in an extension template (or TS condition) for your page.

either you deactivate the extension specific part (plugins.my_extension >)
or the inclusion in the page rendering (page.100 > if the extension was included like page.100 < plugin.my_extension)
or clear the configuration for plugins as subtree of tt_content tt_content.list.20.my_extension >

The way is dependent on your extension and might fail if the inclusion is done in other ways (e.g. hooks, signals)



来源:https://stackoverflow.com/questions/50693266/how-to-disable-an-extension-for-one-page-in-typo3

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