TYPO3 插件:在页面上插入的方法 [英] TYPO3 Plugin: ways to insert on a page

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

问题描述

是否可以在不包含模板(和标记)的情况下将前端插件插入页面?

Is it possible to insert a frontend plugin to a page without having a template (and markers) included?

通常我使用:

10.marks {
    CONTENT_LEFT < plugin.tx_xy_p1
}

但在一个新项目中,我不想有一个包含标记 (###CONTENT_LEFT###) 的模板文件.该插件应显示为该页面上唯一的内容.

But in a new project I dont want to have a template file where the markers (###CONTENT_LEFT###) are included. The plugin should appear as the only thing on that page.

推荐答案

如果您只需要插件,只需使用 PAGE 类型的标准页面对象创建一个全新的根模板,并在其中插入插件内容.

If all you want is the plugin, simply create a sparkingly fresh root template with the standard page object of type PAGE, and insert plugin content there.

使用 rootflag 等创建一个新页面,如果需要,还可以创建插件的静态文件.在设置字段中输入您对此的改编:

Create a new page with rootflag etc, and maybe the static files for your plugin, if needed. In the setup field enter your adaption of this:

page = PAGE
page.10 < plugin.tt_news

当然,您可能需要添加更多内容,具体取决于您的需要,但这应该是原则(而且确实有效,我刚刚测试过).:-)

You might of course need to add more, depending on your needs, but this should be the principle (and it works, I tested just now). :-)

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

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