TYPO3 在每个页面上插入插件 [英] TYPO3 insert plugin on every pages

查看:26
本文介绍了TYPO3 在每个页面上插入插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 TYPO3 版本 7.6.18.我想在每个页面中插入一些插件,我认为这可能与打字稿有关?请帮帮我,怎么办?

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 ?

推荐答案

如果你想在每个页面上插入一个特定的插件,你可以像这样简单地将它添加到你的页面:

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.

这篇关于TYPO3 在每个页面上插入插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆