[TYPO3-english] extbase/fluid extension as PLUGIN_TYPE_CONTENT_ELEMENT

Andreas Kiessling andreas.kiessling at web.de
Sat Jun 22 00:59:52 CEST 2013


Hi,

> 
> akaccordion_accordion Is that the name of the extension_class or
> something else?

akaccordion_accordion is the value of the content record in the type
column (CType for tt_content) and is the value of $pluginSignature from
ext_tables.php . You can have different types of records in one table
and map these different types to different models (that is called single
table inheritance).
http://forge.typo3.org/issues/5883 and maybe
https://github.com/pascalj/sti_example/ (untested) should explain the
concept a bit better.


> 
> BTW any clues of how to debug this? Kind of got the impression I made an
> typing error somewhere.. but where..
> 

IMHO it is very cumbersome to debug Extbase and Flow. If you want to
have a look at the generated queries, you can uncomment some debug
statements in
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php

Stepping through the whole rendering chain with xdebug works, but you
jump through a lot of different files.


If you don't need the inline relations, you can/should skip the whole
additional setup stuff with the repository and models and just assign
$this->configurationManager->getContentObject()->data to your view. You
can access them with the name of the column in your view (e.g.
header_link instead of headerLink).

Regards,
Andreas


More information about the TYPO3-english mailing list