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

Peter Beernink typo3 at wijzijnhet.nl
Tue Oct 2 08:37:45 CEST 2007


Hi List,

I'm currently working on an experimental extension in which I want to  
perform some actions depending on the TV mapping the content is placed  
in
(and of course some conditions in the plugin).
Therefore I've got two questions about the internals of TemplaVoila:

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?

2) In some cases (depending on some plugin settings / calculations), I  
want to use a different wrapping around the complete mapping field.  
I've done some tests in which I XCLASS'ed the  
tx_templavoila_pi1::processDataValues, but in my first test that would  
require copy the complete function and modify just a couple of lines.
I've tried to call parent::processDataValues and than afterwards  
modify/add the custom wrapping according on a global variable set by  
the plugin, but doing this, I ran into some problems when using  
Flexible content elements.
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.

Thanks for your reply...

Best regards,
Peter

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.






More information about the TYPO3-dev mailing list