首页 文章

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

提问于
浏览
0

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

List.html

<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>

在CodeController.php中使用以下Action

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

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

}

我现在明白了:

</tbody>                                    
    <tr id="1">
        <td>1</td>
        <td class="legal-name"><a href="code/2138/"></a></td>
    </tr>                       
    <tr id="1">
        <td>2</td>
        <td class="legal-name"><a href="code/2549/"></a></td>
    </tr>
</tbody>

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

1 回答

  • 1

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

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

    你看到了什么?

    看看您的域模型,看看getter和setter是否存在“name” . 同时检查您的TCA以查看字段“name”的定义是否正确 .

相关问题