[TYPO3-mvc] Feature request for Fluid: add contentObjectData by default

Stefan Frömken firma at sfroemken.de
Fri Sep 9 12:51:59 CEST 2011


Am 09.09.2011 10:52, schrieb Georg Ringer:
> Hi,
>
> I did something nice for my news extension but this would be useful for
> every fluid based extension [1]:
>
> It would be cool if something like
> -------
> 'contentObjectData' => $this->request->getContentObjectData(),
> -------
>
> would be added always to the fluid output. Therefore you have all the
> things from cObj->data (which is the content element) available in fluid
> and would be helpful for many uses cases.
>
> What do you think?
> Georg
>
> [1]
> https://review.typo3.org/#patch,unified,4772,1,Classes/Controller/NewsController.php
>

This is a good idea,

but please use:

$this->configurationManager->getContentObject()->data;

to retrieve the data-Array
Stefan


More information about the TYPO3-project-typo3v4mvc mailing list