[TYPO3-dev] Some questions about the internals of TemplaVoila

Dmitry Dulepov [typo3] dmitry at typo3.org
Tue Oct 2 10:06:46 CEST 2007


Hi!

Peter Beernink wrote:
> 1) Is it currently possible to get the current flexformPointer in a 
> content Element? I know that you can use the 
> tx_templavoila_api::flexform_getPointersByRecord, but that would return 
> more than one element if there are multiple instances of the content on 
> the page. Or is there perhaps an other way to "know" what the mapping is 
> the content element is placed in?

I am not ready to answer this at the moment, sorry :(

> If the content is placed in a FCE, I only want the content of that 
> specific FCE mapping to have that wrapping. Does anybody know if there 
> might be an other way to do this (preferably without modifying 
> templaVoila myself. If there really is no other way, I can add an hook 
> myself and request it to be placed in the extension as well, but to be a 
> bit backwards compatible I would rather avoid this.

You can have a hook in new version. In ext_localconf.php you can check TV version and see if you want use XCLASS or hook. Or just set dependency for TV for a minimum version and always use hook.

-- 
Dmitry Dulepov
TYPO3 freelancer / TYPO3 core team member
Web: http://typo3bloke.net/
Skype: callto:liels_bugs




More information about the TYPO3-dev mailing list