且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Typo3 6.1.5中使用PHP在我的扩展程序中从tt_content呈现内容对象

更新时间:2023-11-26 16:15:04

在Extbase扩展中,$this->cObj在当前作用域中不再可用,因此您需要先获得它才能使用:

In Extbase extensions $this->cObj is no more available in the current scope, so you need to get it first before you can use:

$cObj = $this->configurationManager->getContentObject();

$ttContentConfig = array(
    'tables'       => 'tt_content',
    'source'       => 123,
    'dontCheckPid' => 1
);

$content .= $cObj->RECORDS($ttContentConfig);