[TYPO3-templavoila] howto use the templatemappings in own ext.?

Dmitry Dulepov dmitry at typo3.org
Tue Feb 6 10:48:33 CET 2007


Hi!

Andreas Jonderko wrote:
> I have a problem using templavoila with my extension. I'm trying to use 
> the "already mapped elements", the "target" information, as my 
> JavaScript target. In my Extension i can alreay choose the possible 
> mapped fields from a selector box. Now i have to add an eventhandler in 
> javascript to the selected field, so i need an id or a class from this 
> field. I expect that not everyone will give the element an id or class, 
> so i have to manipulate the mappings, so the rendered content elements 
> are not more just <h1> but <h1 id="myTempIDveryUnique238294">
> 
> 
> but how make it ? is it possible "just in time" ? cached elements?
> 
> Its hard for me to understand the renderings from begining to the end...

TemplaVoila by itself renders only one type of elements: FCE. Everything 
else is rendered by typo3/css_styled_content. If you define your field 
as header field, you can take a look how css_styled_content defines its 
rendering and uses wraps.

-- 
Dmitry Dulepov

Web: http://typo3bloke.net/
Skype: callto:liels_bugs

"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)


More information about the TYPO3-project-templavoila mailing list