[TYPO3-english] extbase/fluid extension as PLUGIN_TYPE_CONTENT_ELEMENT
Muriel le Pair
typo3 at strangefruit.nl
Mon Jun 24 18:05:54 CEST 2013
On 22-06-13 00:59, Andreas Kiessling wrote:
> 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.
Hi,
It works. But there is still something I don't understand.
It outputs an object that contains all content element values and an
array named rows, that contains all the rows of the plugin.
SF\SfCodehighlighter\Domain\Model\Plugins\ItemRows
rows => TYPO3\CMS\Extbase\Persistence\ObjectStorageprototypeobject
(1 items)
colPos => 1 (integer)
crdate => NULL
tstamp => NULL
CType => NULL
header => 'test' (4 chars)
[..]
Each rows contains an object with the values of the database record:
rows => TYPO3\CMS\Extbase\Persistence\ObjectStorage
00000000308a854e00000000d91b6776 =>
SF\SfCodehighlighter\Domain\Model\Itemsprototypepersistent entity
(uid=4, pid=11)
ref => 'test' (9 chars)
ttcontentuid => 37 (integer)
ttcontentsorting => 1 (integer)
title => '' (0 chars)
[..]
getRows() works fine. But how do you set or get for instance title
within rows[]?
I try getTitle(), but this will produce a nasty fatal error:
Fatal error: Call to undefined method
SF\SfCodehighlighter\Domain\Model\Plugins\ItemRows::getTitle()
--
kind regards,
Muriel le Pair
More information about the TYPO3-english
mailing list