TYPO3 - 从7LTS升级到8LTS后,Extbase扩展无法呈现记录信息

时间:2017-08-23 14:08:07

标签: typo3 typo3-extensions typo3-8.x

从7LTS升级到8LTS后,我的分机无法呈现所有记录信息。它看起来像是在运行查询。我曾经在列表视图中渲染此表:

List.html

MethodOnBaseClass();

在CodeController.php中使用以下Action:

<tbody>                                 
    <f:for each="{records}" as="record">                        
        <tr id="{record.uid}">
            <td>{record.uid}</td>
            <td class="name"><f:link.action action="show" pageUid="43" arguments="{record:record}">{record.name}</f:link.action></td>
        </tr>
    </f:for>
    </f:if>                 
</tbody>

我现在知道了:

/**
 * action list
 *
 * @param integer $minUid
 * @param integer $maxUid
 * @return void
 */
public function listAction() {

    $this->view->assign('records', $this->codeRepository->findUidRange($minUid,$maxUid));

}

解决:...问题是我在ext_tables.php中有TCA定义。现在转移到Configuration / TCA / ...并再次运行。感谢

1 个答案:

答案 0 :(得分:1)

如果您调试流体模板中的记录:

<f:debug>{records}</f:debug>

你看到了什么?

看一下你的域名模型,看看getter和setter是否适用于&#34; name&#34;。同时检查您的TCA以查看该字段的定义&#34; name&#34;是对的。