Moin,
wie kann ich aus dem description Feld eines mit RTE machen?
Dazu gibt es schon vieles im Netz aber ich komme damit nicht zu einem Ergebnis.
Hier
(https://docs.typo3.org/typo3cms/TCAReference/ExtendingTca/StoringChanges/Index.html)
steht, dass seit 6.2.1 die Änderungen nicht mehr in ext_tables.php gemacht werden sollen, sondern in Configuration/TCA/Overrides/tt_address.php.

Also habe ich versucht:

tt_address.php:

<?php
defined('TYPO3_MODE') or die();
$GLOBALS['TCA']['tt_address']['columns']['description']['config'] = $GLOBALS['TCA']['tt_content']['columns']['bodytext']['config'];
// kann je nach tt_address Version auch ['types']['0'] sein!
$GLOBALS['TCA']['tt_address']['types']['1']['showitem'] = str_replace('description', 'description;;;richtext:rte_transform[flag=rte_enabled|mode=ts_css]', $GLOBALS['TCA']['tt_address']['types']['1']['showitem']);

(http://www.thefox.ch/extdev/typo3/extensions/tt-address/aus-beschreibung-ein-rte-feld-machen/)


oder:


<?php
defined('TYPO3_MODE') or die();
$tempConfiguration = array(
    'type' => 'text',
    'cols' => '30',
    'rows' => '5',
    'wizards' => array(
      '_PADDING' => 2,
      'RTE' => array(
        'notNewRecords' => 1,
        'RTEonly'       => 1,
        'type'          => 'script',
        'module' => array(
          'name' => 'wizard_rte',
        ),
      ),
  ),
);

$GLOBALS['TCA']['tt_address']['columns']['description']['config'] = array_merge(
        $GLOBALS['TCA']['tt_address']['columns']['description']['config'],
        $tempConfiguration
);

(prinzipiell aus EXT:examples (page.php) und EXT:km_ttaddress_extension zusammengeklaubt..)


ext_tables.sql:
CREATE TABLE tt_address (
        description text
);

funktioniert aber irgendwie nicht. Im Installtool habe ich den Database analyzer durchlaufen lassen, da ist alles ok. description ist in der Datenbank nun auch tatsächlich ein text-Feld.

Kann da jemand helfen?


Vielen Dank!

Hauke
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an