[TYPO3] Extending Content Element

Jochen Rieger j.rieger at connecta.ag
Fri Jul 13 14:29:29 CEST 2007

Hi Tim,

> I want to add params to an image content element, onmouseover. But there is
> only fields for alt/title fields in the content mask. So how can i add
> typoscript or this attributes to an standard content element.
> In Typoscript it would be the img.params option.

a way you could add additional params to your img tag could be as 
follows. In TS (maybe object browser) you can find:

tt_content.image.20.1.params = align="top"

There you can add some other params as well. To have individual params 
possible for each content element you could do something like this:

tt_content.image.20.1.params = TEXT
tt_content.image.20.1.params.field = longdescURL
tt_content.image.20.1.longdescURL >

This way you "abuse" the field "longdescURL" to enter your params that 
are rendered as the params of your img tag.

Of cause you also could extend the table tt_content by another field 
that only serves the params purpose:

tt_content.image.20.1.params.field = myNewField

Maybe that can help you (untested!).


Connecta AG TYPO3 Development

More information about the TYPO3-english mailing list