-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathext_localconf.php
More file actions
73 lines (67 loc) · 2.34 KB
/
Copy pathext_localconf.php
File metadata and controls
73 lines (67 loc) · 2.34 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
declare(strict_types=1);
defined('TYPO3') or die();
// Register own renderType for tx_styleguide_elements_basic user_1 as user1Element
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1536238257] = [
'nodeName' => 'user1Element',
'priority' => 40,
'class' => \TYPO3\CMS\Styleguide\Form\Element\User1Element::class,
];
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['RTE-Styleguide'] = 'EXT:styleguide/Configuration/RTE/RTE-Styleguide.yaml';
// Register password generator policies referenced by the passwordGenerator
// field control demos in tx_styleguide_elements_basic
$GLOBALS['TYPO3_CONF_VARS']['SYS']['passwordPolicies']['styleguideHex'] = [
'generator' => [
'className' => \TYPO3\CMS\Core\PasswordPolicy\Generator\PasswordGenerator::class,
'options' => [
'length' => 30,
'random' => 'hex',
],
],
'validators' => [],
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['passwordPolicies']['styleguideBase64'] = [
'generator' => [
'className' => \TYPO3\CMS\Core\PasswordPolicy\Generator\PasswordGenerator::class,
'options' => [
'length' => 35,
'random' => 'base64',
],
],
'validators' => [],
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['passwordPolicies']['styleguideAllCharacters'] = [
'generator' => [
'className' => \TYPO3\CMS\Core\PasswordPolicy\Generator\PasswordGenerator::class,
'options' => [
'specialCharacters' => true,
],
],
'validators' => [],
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['passwordPolicies']['styleguideDigits'] = [
'generator' => [
'className' => \TYPO3\CMS\Core\PasswordPolicy\Generator\PasswordGenerator::class,
'options' => [
'length' => 8,
'lowerCaseCharacters' => false,
'upperCaseCharacters' => false,
],
],
'validators' => [],
];
// Register some custom permission options shown in BE group access lists
$GLOBALS['TYPO3_CONF_VARS']['BE']['customPermOptions']['tx_styleguide_custom'] = [
'header' => 'Custom styleguide permissions',
'items' => [
'key1' => [
'Option 1',
// Icon has been registered above
'tcarecords-tx_styleguide_forms-default',
'Description 1',
],
'key2' => [
'Option 2',
],
],
];