我如何在typo3 6.1.5中使用php在tt_content中呈现内容对象

dus*_*sty 3 database plugins frontend typo3

我需要使用扩展名来呈现tt_content中的特定内容.

我怎样才能做到这一点?

\ TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer?

nba*_*bar 6

在Extbase扩展$this->cObj中,当前范围内不再提供扩展,因此您需要先使用它,然后才能使用:

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

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

$content .= $cObj->RECORDS($ttContentConfig);
Run Code Online (Sandbox Code Playgroud)