RealurlConfiguration.php 2.75 KB
Newer Older
1
2
<?php

3
$GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] .= ',tx_realurl_pathsegment';
4

5
if (!function_exists('encodeTitleUserProc')) {
6
7
    function encodeTitleUserProc($params)
    {
8
9
10
11
        return $params['pObj']->getUtility()->convertToSafeString($params['title'], $params['encodingConfiguration']['spaceCharacter']);
    }
}

12
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT'] = [
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
    'init' => [
        'appendMissingSlash' => 'ifNotFile,redirect[301]',
        'postVarSet_failureMode' => '',
    ],
    'fileName' => [
        'acceptHTMLsuffix' => false,
        'defaultToHTMLsuffixOnPrev' => false,
        'index' => [
        ],
    ],
    'pagePath' => [
        'expireDays' => 2,
        'languageExceptionUids' => '',
        'languageGetVar' => 'L',
        'rootpage_id' => 1,
        'spaceCharacter' => '-',
    ],
    'preVars' => [
        [
            'GETvar' => 'L',
            'valueMap' => [
34
                '' => 0,
35
36
37
38
            ],
            'noMatch' => 'bypass',
        ],
    ],
39
40
41
42
43
44
45
46
47
    'postVarSets' => [
        '_DEFAULT' => [
            'page' => [
                [
                    'GETvar' => 'tx_solr[page]'
                ]
            ]
        ]
    ],
48
49
50
51
52
    'fixedPostVars' => [
        'extension' => [
            [
                'GETvar' => 'tx_terfe2_pi1[controller]',
                'valueMap' => [
Thomas Löffler's avatar
Thomas Löffler committed
53
54
                    'Extension' => '',
                    'Review' => 'security-review'
55
                ],
56
                'noMatch' => 'bypass'
57
            ],
58
59
60
61
            [
                'GETvar' => 'tx_terfe2_pi1[action]',
                'valueMap' => [
                    'detail' => '',
Thomas Löffler's avatar
Thomas Löffler committed
62
63
                    'download' => 'download',
                    'update' => 'update'
64
                ],
65
66
67
68
69
70
71
72
73
74
75
                'noMatch' => 'bypass'
            ],
            [
                'GETvar' => 'tx_terfe2_pi1[extension]',
                'lookUpTable' => [
                    'table' => 'tx_terfe2_domain_model_extension',
                    'id_field' => 'uid',
                    'alias_field' => 'ext_key',
                    'addWhereClause' => ' AND deleted=0 AND hidden=0',
                    'useUniqueCache' => 1,
                    'useUniqueCache_conf' => [
76
                        'encodeTitle_userProc' => 'encodeTitleUserProc',
77
                        'strtolower' => 1,
78
                        'spaceCharacter' => '_',
79
                    ],
80
81
82
                    'enable404forInvalidAlias' => 1,
                    'autoUpdate' => 1,
                    'expireDays' => 180,
83
                ],
84
85
86
87
88
89
            ],
            [
                'GETvar' => 'tx_terfe2_pi1[versionString]',
            ],
            [
                'GETvar' => 'tx_terfe2_pi1[format]',
90
91
            ],
        ],
92
        3 => 'extension'
93
94
    ],
];