[TYPO3-german] FlexForm-Fehler
Peter Russ
peter.russ at 4many.net
Fri Feb 20 10:48:57 CET 2009
--- Original Nachricht ---
Absender: Markus Deckmann
Datum: 20.02.2009 10:19:
> Hi David,
>
>> wenn Du in der Funktion ein t3lib_div::debug($config) einbaust
>> bekommst Du normalerweise einen Array angezeigt:
>
> Ein "t3lib_div::debug($config);" bzw. ein "t3lib_div::debug($config);"
> bleibt bei mir ohne Reaktion einer Ausgabe im Backend.
>
>
>> Ich habe das jetzt als PHP-Array notiert - so wie die Werte innerhalb
>> Deiner Funktion zur Verfügung stehen, in der Tabelle sieht's etwas
>> anders aus.
>> Sichtbar wird der Debug, wenn Du das Backendformular Inhaltselement
>> aufrufst und dort Dein Plugin einstellst, wo das FF drin ist.
>
> Habe mein Inhaltselement eingefügt, hier sehe ich zwar die FlexForm,
> allerdings nicht die Debug-Ausgabe.
>
>
>> Hast Du Deine Funktion denn innerhalb der Klasse tx_extname_pi1
>> notiert oder darunter?
>
> Ich habe die Funktion in eine extra Klasse auf der Ebene
> typo3conf/ext/mantiscore notiert. Meine Klasse schaut wie folgt aus:
>
> ### class.tx_t3mantiscore_flex.php ###
>
> class tx_mantiscore_flex {
> // ### SubModes-Array für FlexForm ###
> function tx_addSubModes($config) {
> $optionList = array();
> // add first option
> $optionList[0] = array(0 => 'option1', 1 => 'value1');
> // add second option
> $optionList[1] = array(0 => 'option2', 1 => 'value2');
>
> if (!is_array($config['items'])) $config['items']=array();
> $config['items'] = array_merge($config['items'],$optionList);
>
> t3lib_div::debug($optionList);
>
> return $config;
> }
> }
>
> if (defined('TYPO3_MODE') &&
> $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/t3_mantis_core/pi1/class.tx_t3mantiscore_flex.php'])
> {
> include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/t3_mantis_core/pi1/class.tx_t3mantiscore_flex.php']);
>
> }
Ist das Absicht:
class.tx_t3mantiscore_flex.php
class tx_mantiscore_flex
Könnte ja sein...
Am einfachsten mal Klasse (t3x) bereitstellen. Sonst forschen wir her
noch länger.
Peter.
--
Fiat lux!
Docendo discimus.
http://www.gidf.de
_____________________________
4Many� Services
uon GbR
XING: http://www.xing.com/profile/Peter_Russ
https://www.xing.com/go/invita/360052
http://www.xing.com/go/privatemessage/Peter_Russ
More information about the TYPO3-german
mailing list