TYPO3:如何在后端中配置插件预览

时间:2019-04-15 14:42:20

标签: typo3 backend extbase

在后端,我想显示编辑器选择的插件的一些配置。就像在Powermail或新闻插件中一样。如何实现?

1 个答案:

答案 0 :(得分:2)

您将应用与custom preview of any custom element相同的逻辑:

  • 您可以use PageTS to register a custom Fluid template

    rcartocolor
  • 或者您可以实现// Register preview for a custom content element mod.web_layout.tt_content.preview.my_content_element = EXT:my_ext/Resources/Private/Templates/Preview/MyContentElement.html // Register preview for a plugin mod.web_layout.tt_content.preview.list.myext_myplugin = EXT:my_ext/Resources/Private/Templates/Preview/MyPlugin.html 钩子:

    tt_content_drawItem

    然后实现此钩子:

    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['fluid_styled_slider'] = \Acme\Package\MyPreviewRenderer::class;