* Added "rtehtmlarea" as a system extension
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / ext_tables.php
1 <?php
2 if (!defined ('TYPO3_MODE')) die ('Access denied.');
3
4 if (TYPO3_MODE == 'BE' && t3lib_extMgm::isLoaded('lorem_ipsum')) {
5
6 // Create wizard configuration:
7 $wizConfig = array(
8 'type' => 'userFunc',
9 'userFunc' => 'EXT:' . $_EXTKEY . '/class.tx_rtehtmlarea_loremipsum_wiz.php:tx_rtehtmlarea_loremipsum_wiz->main',
10 'params' => array()
11 );
12
13 // Load affected tables (except "pages"):
14 t3lib_div::loadTCA('tt_content');
15
16 // *********************
17 // Apply wizards to:
18 // *********************
19
20 // Titles:
21 $TCA['pages']['columns']['title']['config']['wizards']['tx_loremipsum'] =
22 $TCA['pages']['columns']['nav_title']['config']['wizards']['tx_loremipsum'] =
23 array_merge($wizConfig,array('params'=>array(
24 'type' => 'title'
25 )));
26
27 // Subheaders
28 $TCA['pages']['columns']['subtitle']['config']['wizards']['tx_loremipsum'] =
29 $TCA['tt_content']['columns']['header']['config']['wizards']['tx_loremipsum'] =
30 $TCA['tt_content']['columns']['subheader']['config']['wizards']['tx_loremipsum'] =
31 array_merge($wizConfig,array('params'=>array(
32 'type' => 'header'
33 )));
34
35 // Description / Abstract:
36 $TCA['pages']['columns']['description']['config']['wizards']['tx_loremipsum'] =
37 $TCA['pages']['columns']['abstract']['config']['wizards']['tx_loremipsum'] =
38 $TCA['tt_content']['columns']['imagecaption']['config']['wizards']['tx_loremipsum'] =
39 array_merge($wizConfig,array('params'=>array(
40 'type' => 'description',
41 'endSequence' => '46,32',
42 'add' => TRUE
43 )));
44
45 // Keywords field:
46 $TCA['pages']['columns']['keywords']['config']['wizards']['tx_loremipsum'] =
47 array_merge($wizConfig,array('params'=>array(
48 'type' => 'word',
49 'endSequence' => '44,32',
50 'add' => TRUE,
51 'count' => 30
52 )));
53
54 // Bodytext field in Content Elements:
55 $TCA['tt_content']['columns']['bodytext']['config']['wizards']['_VERTICAL'] = 1;
56 $TCA['tt_content']['columns']['bodytext']['config']['wizards']['tx_loremipsum_2'] =
57 array_merge($wizConfig,array('params'=>array(
58 'type' => 'loremipsum',
59 'endSequence' => '32',
60 'add'=>TRUE
61 )));
62 $TCA['tt_content']['columns']['bodytext']['config']['wizards']['tx_loremipsum'] =
63 array_merge($wizConfig,array('params'=>array(
64 'type' => 'paragraph',
65 'endSequence' => '10',
66 'add'=>TRUE
67 )));
68
69 $TCA['tt_content']['columns']['image']['config']['wizards']['_POSITION'] = 'bottom';
70 $TCA['tt_content']['columns']['image']['config']['wizards']['tx_loremipsum'] =
71 array_merge($wizConfig,array('params'=>array(
72 'type' => 'images'
73 )));
74 }
75
76 $TCA['tx_rtehtmlarea_acronym'] = Array (
77 'ctrl' => Array (
78 'title' => 'LLL:EXT:rtehtmlarea/locallang_db.php:tx_rtehtmlarea_acronym',
79 'label' => 'term',
80 'default_sortby' => 'ORDER BY term',
81 'sortby' => 'sorting',
82 'rootLevel' => 1,
83 'delete' => 'deleted',
84 'enablecolumns' => Array (
85 'disabled' => 'hidden',
86 'starttime' => 'starttime',
87 'endtime' => 'endtime',
88 ),
89 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
90 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'htmlarea/skins/default/images/Acronym/ed_acronym.gif',
91 )
92 );
93
94 t3lib_extMgm::allowTableOnStandardPages('tx_rtehtmlarea_acronym');
95 t3lib_extMgm::addToInsertRecords('tx_rtehtmlarea_acronym');
96 ?>