[TYPO3-ect] access tt_content values of the current record
Fabien Udriot
fudriot at omic.ch
Wed Aug 22 01:26:00 CEST 2007
> Looks good.
Looks good but does not work. :-/
$this->controller->context->getData('tstamp');
In my opinion this is a too long string of code for getting the values
of the current record.
$this->controller->context->contentObject->data['tstamp']
Furthemore, I see an inconsistency. Why flexform's value are put into
the configurations array when the data of the record not ?
$this->configurations['flexform_key'] //output the content
$this->configurations['tt_content.tstamp'] //output nothing
best regards,
Fabien
Elmar Hinz a écrit :
> Fabien Udriot wrote:
>
>> Hi !
>>
>> Once upon a time, we could write this :
>>
>> $this->controller->configurations['tt_content.tstamp']
>>
>> ... The result was the tstamp of the record. But things have changed.
>> How can we access the values of the current record ?
>>
>> $this->controller->configurations->dump() display an array with :
>>
>> - the TS values
>> - the flexform values of the record
>>
>> Does it has to do with the new context object ?
>> $this->context->getData('key')
>
>
>
>
> Looks good.
>
> Regrads
>
> Elamr
>
>
>
More information about the TYPO3-team-extension-coordination
mailing list