[TYPO3-dev] rendering a modified tt_content record inside of plugin

Dmitry Dulepov dmitry at typo3.org
Tue Mar 31 15:37:52 CEST 2009


Hi!

bernd wilke wrote:
> but what if I want to modify the record temporary?
> I think I saw a solution for this but can't find it any more.
> 
> Especially I want to render the actual content-element in a slightly 
> modified version. 
> 
> The actual record is given in $this->cObj->data and I can change every 
> field. 
> But how to render it?
> every method from $this->cObj (like IMAGE,RECORDS,...) uses its own 
> typoscript-pendant data-array to render and doesn't access $this->cObj-
>> data
> 
> Is there a possibility to build up a tt_content-record in memory and 
> render it without creation of a real tt_content-record?

Yes, possible. CSS styled content does that by using 'tt_content' TS object.

-- 
Dmitry Dulepov
Skype: liels_bugs
In the blog: http://dmitry-dulepov.com/article/automatic-realurl-configuration-howto.html




More information about the TYPO3-dev mailing list