WHERE clauses to functions and call to load additional TCA
[TYPO3CMS/Extensions/static_info_tables.git] / ext_localconf.php
1 <?php
2 if (!defined ('TYPO3_MODE')) die ('Access denied.');
3
4
5 if (!defined ('STATIC_INFO_TABLES_EXTkey')) {
6 define('STATIC_INFO_TABLES_EXTkey',$_EXTKEY);
7 }
8
9
10 if (!defined ('DIV_EXTkey')) {
11 define('DIV_EXTkey','div');
12 }
13
14
15 if (t3lib_extMgm::isLoaded(DIV_EXTkey)) {
16 if (!defined ('PATH_BE_div')) {
17 define('PATH_BE_div', t3lib_extMgm::extPath(DIV_EXTkey));
18 }
19 }
20
21
22
23 $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['charset'] = 'utf-8';
24
25 $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['tables'] = array(
26 'static_territories' => array(
27 'label_fields' => array( // possible label fields for different languages. Default as last.
28 'tr_name_##', 'tr_name_en',
29 ),
30 'isocode_field' => array(
31 'tr_iso_##',
32 ),
33 ),
34 'static_countries' => array(
35 'label_fields' => array(
36 'cn_short_##', 'cn_short_en',
37 ),
38 'isocode_field' => array(
39 'cn_iso_##',
40 ),
41 ),
42 'static_country_zones' => array(
43 'label_fields' => array(
44 'zn_name_##', 'zn_name_local',
45 ),
46 'isocode_field' => array(
47 'zn_code', 'zn_country_iso_##',
48 ),
49 ),
50 'static_languages' => array(
51 'label_fields' => array(
52 'lg_name_##', 'lg_name_en',
53 ),
54 'isocode_field' => array(
55 'lg_iso_##', 'lg_country_iso_##',
56 ),
57 ),
58 'static_currencies' => array(
59 'label_fields' => array(
60 'cu_name_##', 'cu_name_en',
61 ),
62 'isocode_field' => array(
63 'cu_iso_##',
64 ),
65 ),
66 'static_taxes' => array(
67 'label_fields' => array(
68 'tx_name_##', 'tx_name_en',
69 ),
70 'isocode_field' => array(
71 'tx_code', 'tx_country_iso_##', 'tx_zn_code',
72 ),
73 ),
74 );
75
76 require_once(t3lib_extMgm::extPath($_EXTKEY).'class.tx_staticinfotables_div.php');
77
78 ?>