TYPO3 insert plugin on every pages

半腔热情 提交于 2019-12-02 08:52:23

问题


I have TYPO3 version 7.6.18. I want to insert some plugin in every pages, I think it may be do with typoscript? Help me please, how to do it ?


回答1:


If you want to insert a specific plugin on every page, you can simply add it to your page like so:

page = PAGE
page{
    10 = FLUIDTEMPLATE
    10{
        # the fluid template settings
    }
    # add a fixed plugin to be rendered after the normal fluid template
    20 = USER
    20{
        userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
        extensionName = MyExt
        vendorName = MyVendor
        pluginName = Pi1
        switchableControllerActions{
            TheController{
                0 = actionName
            }
        }
    }
}

This basically adds a new section to your page rendering that only renders your plugin.



来源:https://stackoverflow.com/questions/44858283/typo3-insert-plugin-on-every-pages

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