TYPO3 insert plugin on every pages

后端 未结 2 459
甜味超标
甜味超标 2021-01-27 02:58

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 ?

2条回答
  •  萌比男神i
    2021-01-27 03:16

    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.

提交回复
热议问题