在后端获取页眉和页脚预览

cod*_*rex 5 typo3 typoscript templavoila

我创建了一个TYPO3插件,用于向tt_content添加新的内容列.

我需要后端的预览页面的页眉和页脚内容.一旦我得到页眉和页脚,我可以在这之间显示我的内容.我想在内容区域中插入一些编辑功能.这就是为什么我需要将html渲染输出到php变量.

我正在使用templavoila.

我试过这个 - 但是收到了一个错误:

$this->cObj = t3lib_div::makeInstance('tslib_cObj');
$conf = array('userFunc' => 'tx_templavoila_pi1->main_page');
$content = $this->cObj->USER($conf);
Run Code Online (Sandbox Code Playgroud)
#1316104317:无法确定扩展名"myplugin"和插件"ContentRenderer"的默认控制器.请检查ext_localconf.php中的TYPO3\CMS\Extbase\Utility\ExtensionUtility :: configurePlugin().

Dav*_*mot 1

您可以使用这个 TypoScript :

10 = USER
10 { 
    userFunc = tx_extbase_core_bootstrap->run
    pluginName = Pi1
    extensionName = EXTNAME
    controller = CONTROLLERNAME
    action = ACTION
}
Run Code Online (Sandbox Code Playgroud)

只需更换EXTNAME,,CONTROLLERNAMEACTION