开发者

TYPO3 Plugin: ways to insert on a page

开发者 https://www.devze.com 2023-01-25 11:05 出处:网络
Is it possible to insert a frontend plugin to a page without having a template 开发者_StackOverflow(and markers) included?

Is it possible to insert a frontend plugin to a page without having a template 开发者_StackOverflow(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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消