[BUGFIX] NewContentElementWizardController to NewContentElementController
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Configuration / Backend / Routes.php
1 <?php
2 use TYPO3\CMS\Backend\Controller;
3
4 /**
5 * Definitions for routes provided by EXT:backend
6 * Contains all "regular" routes for entry points
7 *
8 * Please note that this setup is preliminary until all core use-cases are set up here.
9 * Especially some more properties regarding modules will be added until TYPO3 CMS 7 LTS, and might change.
10 *
11 * Currently the "access" property is only used so no token creation + validation is made,
12 * but will be extended further.
13 */
14 return [
15 // Login screen of the TYPO3 Backend
16 'login' => [
17 'path' => '/login',
18 'access' => 'public',
19 'target' => Controller\LoginController::class . '::formAction'
20 ],
21
22 // Main backend rendering setup (previously called backend.php) for the TYPO3 Backend
23 'main' => [
24 'path' => '/main',
25 'target' => Controller\BackendController::class . '::mainAction'
26 ],
27
28 // Logout script for the TYPO3 Backend
29 'logout' => [
30 'path' => '/logout',
31 'target' => Controller\LogoutController::class . '::logoutAction'
32 ],
33
34 // Register login frameset
35 'login_frameset' => [
36 'path' => '/login/frame',
37 'target' => Controller\LoginFramesetController::class . '::mainAction'
38 ],
39
40 /** Wizards */
41 // Register table wizard
42 'wizard_table' => [
43 'path' => '/wizard/table',
44 'target' => Controller\Wizard\TableController::class . '::mainAction'
45 ],
46
47 // Register add wizard
48 'wizard_add' => [
49 'path' => '/wizard/add',
50 'target' => Controller\Wizard\AddController::class . '::mainAction'
51 ],
52
53 // Register list wizard
54 'wizard_list' => [
55 'path' => '/wizard/list',
56 'target' => Controller\Wizard\ListController::class . '::mainAction'
57 ],
58
59 // Register edit wizard
60 'wizard_edit' => [
61 'path' => '/wizard/edit',
62 'target' => Controller\Wizard\EditController::class . '::mainAction'
63 ],
64
65 // Register link wizard
66 'wizard_link' => [
67 'path' => '/wizard/link/browse',
68 'target' => \TYPO3\CMS\Backend\Controller\LinkBrowserController::class . '::mainAction'
69 ],
70
71 /** File- and folder-related routes */
72
73 // File navigation tree
74 'file_navframe' => [
75 'path' => '/folder/tree',
76 'target' => Controller\FileSystemNavigationFrameController::class . '::mainAction'
77 ],
78
79 // Editing the contents of a file
80 'file_edit' => [
81 'path' => '/file/editcontent',
82 'target' => Controller\File\EditFileController::class . '::mainAction'
83 ],
84
85 // Create a new folder
86 'file_newfolder' => [
87 'path' => '/file/new',
88 'target' => Controller\File\CreateFolderController::class . '::mainAction'
89 ],
90
91 // Rename a file
92 'file_rename' => [
93 'path' => '/file/rename',
94 'target' => Controller\File\RenameFileController::class . '::mainAction'
95 ],
96
97 // Replace a file with a different one
98 'file_replace' => [
99 'path' => '/file/replace',
100 'target' => Controller\File\ReplaceFileController::class . '::mainAction'
101 ],
102
103 // Upload new files
104 'file_upload' => [
105 'path' => '/file/upload',
106 'target' => Controller\File\FileUploadController::class . '::mainAction'
107 ],
108
109 // Add new online media
110 'online_media' => [
111 'path' => '/online-media',
112 'target' => Controller\OnlineMediaController::class . '::mainAction'
113 ],
114
115 /** DB Records-related routes */
116 // Register record history module
117 'record_history' => [
118 'path' => '/record/history',
119 'target' => Controller\ContentElement\ElementHistoryController::class . '::mainAction'
120 ],
121
122 // Register new record
123 'db_new' => [
124 'path' => '/record/new',
125 'target' => Controller\NewRecordController::class . '::mainAction'
126 ],
127
128 // Register sort pages
129 'pages_sort' => [
130 'path' => '/pages/sort',
131 'target' => Controller\Page\SortSubPagesController::class . '::mainAction'
132 ],
133
134 // Register create multiple pages
135 'pages_new' => [
136 'path' => '/pages/new',
137 'target' => Controller\Page\NewMultiplePagesController::class . '::mainAction'
138 ],
139
140 // Register new content element module (as whole document)
141 'new_content_element' => [
142 'path' => '/record/content/new',
143 'target' => Controller\ContentElement\NewContentElementController::class . '::mainAction'
144 ],
145
146 // Register new content element module (in modal)
147 'new_content_element_wizard' => [
148 'path' => '/record/content/wizard/new',
149 'target' => Controller\ContentElement\NewContentElementController::class . '::wizardAction'
150 ],
151
152 // Register move element module
153 'move_element' => [
154 'path' => '/record/move',
155 'target' => Controller\ContentElement\MoveElementController::class . '::mainAction'
156 ],
157
158 // Register show item module
159 'show_item' => [
160 'path' => '/record/info',
161 'target' => Controller\ContentElement\ElementInformationController::class . '::mainAction'
162 ],
163
164 // Register browser
165 'browser' => [
166 'path' => '/record/browse',
167 'target' => \TYPO3\CMS\Recordlist\Controller\ElementBrowserFramesetController::class . '::mainAction'
168 ],
169
170 // Dummy document - displays nothing but background color.
171 'dummy' => [
172 'path' => '/empty',
173 'target' => Controller\DummyController::class . '::mainAction'
174 ],
175
176 /** TYPO3 Core Engine-related routes */
177 /**
178 * TCE gateway (TYPO3 Core Engine) for database handling
179 * This script is a gateway for POST forms to \TYPO3\CMS\Core\DataHandling\DataHandler
180 * that manipulates all information in the database!!
181 * For syntax and API information, see the document 'TYPO3 Core APIs'
182 */
183 'tce_db' => [
184 'path' => '/record/commit',
185 'target' => Controller\SimpleDataHandlerController::class . '::mainAction'
186 ],
187
188 /**
189 * Gateway for TCE (TYPO3 Core Engine) file-handling through POST forms.
190 * This script serves as the fileadministration part of the TYPO3 Core Engine.
191 * Basically it includes two libraries which are used to manipulate files on the server.
192 *
193 * For syntax and API information, see the document 'TYPO3 Core APIs'
194 */
195 'tce_file' => [
196 'path' => '/file/commit',
197 'target' => Controller\File\FileController::class . '::mainAction'
198 ],
199
200 /**
201 * Main form rendering script
202 * By sending certain parameters to this script you can bring up a form
203 * which allows the user to edit the content of one or more database records.
204 */
205 'record_edit' => [
206 'path' => '/record/edit',
207 'target' => Controller\EditDocumentController::class . '::mainAction'
208 ]
209 ];