简体   繁体   English

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

[英]TYPO3 - Extbase extension won't render record information after upgrade from 7LTS to 8LTS

After upgrading from 7LTS to 8LTS my extension won't render all record information. 从7LTS升级到8LTS后,我的扩展程序不会呈现所有记录信息。 It looks like the query is running though. 看起来查询正在运行。 I used to render this table in my list view: 我曾经在列表视图中呈现此表:

List.html 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>

With the following Action in CodeController.php 在CodeController.php中执行以下操作

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

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

}

I get this now: 我现在得到这个:

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

Solved: ... the problem was that I had TCA definitions in ext_tables.php. 解决:...问题是我在ext_tables.php中有TCA定义。 Now moved to Configuration/TCA/ ... and it's working again. 现在移至Configuration / TCA / ...,并且可以再次使用。 Thanks 谢谢

If you debug the records in the fluid template: 如果调试流体模板中的记录:

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

What do you see? 你看到了什么?

Take a look at your domain model and see if the getters and setters are there for "name". 查看您的域模型,看看是否有“名称”的获取器和设置器。 Also check your TCA to see if the definition for the field "name" is correct. 还要检查您的TCA,以查看“名称”字段的定义是否正确。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 TYPO3 - 从7LTS升级到8LTS后无法完成升级向导 - 错误内存不足 - TYPO3 - Failing to complete the Upgrade Wizard after upgrade from 7LTS to 8LTS - Error Out of memory TYPO3-从7LTS升级到8LTS后,f:image&#39;crop&#39;不再起作用 - TYPO3 - f:image 'crop' not working anymore after upgrade from 7LTS to 8LTS TYPO3 - 在自己的扩展中停用 cHash - 8LTS - TYPO3 - Deactivating cHash in own extension - 8LTS 从TYPO3 7更新到TYPO3 9 LTS后的Extbase /类型问题 - Extbase / type problem after update from TYPO3 7 to TYPO3 9 LTS TYPO3 9LTS - 将实例移动到具有 plesk onyx 的 linux 根服务器后,图像不会呈现 - TYPO3 9LTS - Images won't render after moving instance to a linux rootserver with plesk onyx 从7 LTS升级到8 LTS后,Typo3后端图像裁剪/操作工具不再起作用 - Typo3 Backend image cropping / manipulation tool not working anymore after upgrade from 7 LTS to 8 LTS 如何在TYPO3 8LTS中正确配置Fluidcontent手风琴元件 - How to correctly configure a fluidcontent accordion element in TYPO3 8LTS 在 TYPO3 9.5 LTS / Extbase 中扩展存储库 - Extend repository in TYPO3 9.5 LTS / Extbase Typo3 6.2 LTS升级到7.4版 - Typo3 6.2 LTS Upgrade to Version 7.4 使用符号链接将 TYPO3 版本 9 升级到 TYPO3 LTS - Upgrade TYPO3 version 9 to TYPO3 LTS with symlink
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM