-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfixed.php
70 lines (69 loc) · 1.53 KB
/
fixed.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
/**
* File to store fixed paths generated by defined GET-Params and Page-IDs
*
* @author Björn Schmitt
*
* Examples:
*
* ?tx_myextension_myplugin[controller]=Index&tx_myextension_myplugin[action]=show&tx_myextension_myplugin[item]=3
*
* 1. Params to paths
*
* '[PAGE-ID]' => array(
* 'tx_myextension_myplugin[controller]',
* 'tx_myextension_myplugin[action]',
* 'tx_myextension_myplugin[item]'
* )
*
* Will convert to: [Page-Path]/Index/show/3/
*
* 2. Hide
*
* '[PAGE-ID]' => array(
* 'tx_myextension_myplugin[action]',
* 'tx_myextension_myplugin[item]'
* array(
* 'param' => 'tx_myextension_myplugin[controller]',
* 'hide' => true
* )
* )
*
* Will convert to: [Page-Path]/show/3/
*
* 3. Fixed mapping
*
* '[PAGE-ID]' => array(
* 'tx_myextension_myplugin[controller]',
* 'tx_myextension_myplugin[action]',
* array(
* 'param' => 'tx_myextension_myplugin[item]',
* 'map' => array(
* '3' => 'custom-text'
* )
* )
* )
*
* Will convert to: [Page-Path]/Index/show/custom-text/
*
* 4. Dynamic mapping
*
* '[PAGE-ID]' => array(
* 'tx_myextension_myplugin[controller]',
* 'tx_myextension_myplugin[action]',
* array(
* 'param' => 'tx_myextension_myplugin[item]',
* 'sql' => array(
'field' => 'title' ,
'from' => 'tx_myextension_domain_model_post' ,
'where' => 'uid = %s and deleted = 0'
)
* )
* )
*
* Will convert to: [Page-Path]/Index/show/hello-world/
*
*/
return array(
// config here
);