TYPO3 Plugin: ways to insert on a page

♀尐吖头ヾ 提交于 2019-12-10 10:17:00

问题


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

Normally I use:

10.marks {
    CONTENT_LEFT < plugin.tx_xy_p1
}

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.


回答1:


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.

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). :-)



来源:https://stackoverflow.com/questions/4213049/typo3-plugin-ways-to-insert-on-a-page

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