且构网

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

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

更新时间:2023-11-26 16:37:22

在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);