Search code examples
typo3typo3-extensionstypo3-8.x

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. It looks like the query is running though. I used to render this table in my list view:

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

/**
 * 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. Now moved to Configuration/TCA/ ... and it's working again. Thanks


Solution

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