[Typo3-dev] Flexforms <-> Typoscript
Jan-Erik Revsbech
jer at moccompany.com
Thu Mar 10 14:00:07 CET 2005
how about doing this:
Imagine you have af flexform with the field: field_myvariable
Istead of directly accessing this in you plugin, do this:
1: In the template ext_typoscript_set.txt put this:
plugin.tx_myextension_pi1 {
myvariable.field = field_myvariable
}
2: In you class.tx_myplugin_pi1.php :
$mybvariable =
$this->cObj->stdWrap($conf['myvariable'],$conf['myvariable.']);
That way if you want to override a parameter with TS just use
plugin.tx_myext_pi1.myvariable >
plugin.tx_myext_pi1.myvariable = WhatIWantItToBe.
/Jan-Erik
----- Original Message -----
From: "Jean-David Gadina" <macmade at gadlab.net>
To: <typo3-dev at lists.netfielders.de>
Sent: Thursday, March 10, 2005 1:29 PM
Subject: Re: [Typo3-dev] Flexforms <-> Typoscript
> Hello Alex,
>
> If you want the flexform to be automatically generated by the TS, you
> should create a class in your extension that will be called as the
> Flexform DS, and that will read the TS setup and output it as XML. I think
> it should work...
>
> For the FE plugin class, I have developed a function to merge the TS
> configuration array and the flexform. You can get the documentation here:
> http://typo3.org/documentation/document-library/api_macmade/fe_mergeTSconfFlex/
>
> I hope it will help you... : )
> - - -
> Jean-David Gadina (macmade)
> www.gadlab.net - Multimedia Network
> _______________________________________________
> Typo3-dev mailing list
> Typo3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>
More information about the TYPO3-dev
mailing list