1
votes

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 need insert exactly plugin )Mikael
That is not a duplicate question Heinz. Here we talk about a plugin.. There they talk about just content.. could be just a partial... Good Question MikaelMonTea

2 Answers

4
votes

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.

0
votes

You could also load the plugin into lib and render it in your FLUID template.

TypoScript

lib.myPlugin = USER
lib.myPlugin {
    userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
    extensionName = MyExt
    vendorName = MyVendor
    pluginName = Pi1
    switchableControllerActions{
        TheController{
            0 = actionName
        }
    }
}

FLUID template

<f:cObject typoscriptObjectPath="lib.myPlugin"/>