forked from netresearch/t3x-contexts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_contexts.php
More file actions
48 lines (45 loc) · 1.52 KB
/
Copy pathext_contexts.php
File metadata and controls
48 lines (45 loc) · 1.52 KB
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
<?php
Tx_Contexts_Api_Configuration::enableContextsForTable($_EXTKEY, 'pages', array(
'tx_contexts_nav' => array(
'label' => 'LLL:' . Tx_Contexts_Api_Configuration::LANG_FILE . ':tx_contexts_menu_visibility',
'flatten' => true
)
));
Tx_Contexts_Api_Configuration::enableContextsForTable($_EXTKEY, 'tt_content');
Tx_Contexts_Api_Configuration::registerContextType(
'domain',
'Domain',
'Tx_Contexts_Context_Type_Domain',
'FILE:EXT:contexts/Configuration/flexform/ContextType/Domain.xml'
);
Tx_Contexts_Api_Configuration::registerContextType(
'getparam',
'GET parameter',
'Tx_Contexts_Context_Type_GetParam',
'FILE:EXT:contexts/Configuration/flexform/ContextType/GetParam.xml'
);
Tx_Contexts_Api_Configuration::registerContextType(
'ip',
'IP',
'Tx_Contexts_Context_Type_Ip',
'FILE:EXT:contexts/Configuration/flexform/ContextType/Ip.xml'
);
Tx_Contexts_Api_Configuration::registerContextType(
'httpheader',
'HTTP header',
'Tx_Contexts_Context_Type_HttpHeader',
'FILE:EXT:contexts/Configuration/flexform/ContextType/HttpHeader.xml'
);
Tx_Contexts_Api_Configuration::registerContextType(
'combination',
'Logical context combination',
'Tx_Contexts_Context_Type_Combination',
'FILE:EXT:contexts/Configuration/flexform/ContextType/Combination.xml'
);
Tx_Contexts_Api_Configuration::registerContextType(
'session',
'Session variable',
'Tx_Contexts_Context_Type_Session',
'FILE:EXT:contexts/Configuration/flexform/ContextType/Session.xml'
);
?>