This repository has been archived by the owner on Jan 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ext_localconf.php
56 lines (49 loc) · 1.85 KB
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
if (!defined ("TYPO3_MODE")) die ("Access denied.");
t3lib_extMgm::addUserTSConfig('
options.saveDocNew.tx_calendar_cat=1
');
t3lib_extMgm::addUserTSConfig('
options.saveDocNew.tx_calendar_item=1
');
t3lib_extMgm::addPageTSConfig('
# ***************************************************************************************
# CONFIGURATION of RTE in table "tx_calendar_item", field "descr"
# ***************************************************************************************
RTE.config.tx_calendar_item.descr {
hidePStyleItems = H1, H4, H5, H6
proc.exitHTMLparser_db=1
proc.exitHTMLparser_db {
keepNonMatchedTags=1
tags.font.allowedAttribs= color
tags.font.rmTagIfNoAttrib = 1
tags.font.nesting = global
}
}
');
t3lib_extMgm::addPageTSConfig('
# ***************************************************************************************
# CONFIGURATION of RTE in table "tx_calendar_item", field "moreinfo"
# ***************************************************************************************
RTE.config.tx_calendar_item.moreinfo {
hidePStyleItems = H1, H4, H5, H6
proc.exitHTMLparser_db=1
proc.exitHTMLparser_db {
keepNonMatchedTags=1
tags.font.allowedAttribs= color
tags.font.rmTagIfNoAttrib = 1
tags.font.nesting = global
}
}
');
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY,"editorcfg","
tt_content.CSS_editor.ch.tx_calendar_pi1 = < plugin.tx_calendar_pi1.CSS_editor
",43);
t3lib_extMgm::addPItoST43($_EXTKEY,"pi1/class.tx_calendar_pi1.php","_pi1","list_type",1);
// make this visible through Web->Page
$TYPO3_CONF_VARS['EXTCONF']['cms']['db_layout']['addTables']['tx_calendar_item'][0] =
array('fList' => 'title,start_date,start_time,end_date,end_time,place,image',
'icon' => 1,
);
?>