[英]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.