PageRenderTime 24ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/web/typo3conf/realurl_conf.php

https://bitbucket.org/martinpfister-info/source-bensan
PHP | 320 lines | 298 code | 3 blank | 19 comment | 0 complexity | 640c388c8c42b8bf48b7dfcff8be4247 MD5 | raw file
  1. <?php
  2. /**
  3. * WARNING! Order of entries in postVarsSets are important, especially for
  4. * 'forum' key. If you rearrange entries inside any of postVarsSets, you may end
  5. * up with badly formatted urls such as `/path/to/page/controller/action///some-title'.
  6. * Either use 'cond' where appropriate or put less used parameters last.
  7. */
  8. $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT'] = [
  9. 'init' => [
  10. 'appendMissingSlash' => 'ifNotFile,redirect',
  11. ],
  12. 'fixedPostVars' => [
  13. '11' => [
  14. [
  15. 'GETvar' => 'tx_sijobs_joboffers[action]',
  16. 'valueMap' => [
  17. 'detail' => 'show',
  18. ],
  19. ],
  20. [
  21. // Limit to 'newAction' only
  22. 'GETvar' => 'tx_sijobs_joboffers[institution]',
  23. 'cond' => [
  24. 'prevValueInList' => 'new',
  25. ],
  26. 'lookUpTable' => [
  27. 'table' => 'tx_siinstitution_domain_model_institution',
  28. 'id_field' => 'uid',
  29. 'alias_field' => 'title',
  30. 'addWhereClause' => ' AND deleted=0',
  31. 'useUniqueCache' => 1,
  32. 'useUniqueCache_conf' => [
  33. 'strtolower' => 1,
  34. 'spaceCharacter' => '-',
  35. ],
  36. 'languageGetVar' => 'L',
  37. 'languageExceptionUids' => '',
  38. 'languageField' => 'sys_language_uid',
  39. 'transOrigPointerField' => 'l10n_parent',
  40. ],
  41. ],
  42. [
  43. // This is used in several actions. Keep it last to
  44. // have it empty if it is not set (for actions that do not use it)
  45. 'GETvar' => 'tx_sijobs_joboffers[jobOffer]',
  46. 'lookUpTable' => [
  47. 'table' => 'tx_sijobs_domain_model_joboffer',
  48. 'id_field' => 'uid',
  49. 'alias_field' => 'title',
  50. 'addWhereClause' => ' AND deleted=0',
  51. 'useUniqueCache' => 1,
  52. 'useUniqueCache_conf' => [
  53. 'strtolower' => 1,
  54. 'spaceCharacter' => '-',
  55. ],
  56. 'languageGetVar' => 'L',
  57. 'languageExceptionUids' => '',
  58. 'languageField' => 'sys_language_uid',
  59. 'transOrigPointerField' => 'l10n_parent',
  60. ],
  61. ],
  62. [
  63. 'GETvar' => 'tx_sijobs_joboffers[controller]',
  64. 'noMatch' => 'bypass',
  65. ],
  66. ],
  67. '13' => [
  68. [
  69. 'GETvar' => 'tx_sijobs_jobapplication[action]',
  70. 'valueMap' => [
  71. 'detail' => 'show',
  72. ],
  73. ],
  74. [
  75. // This is used in several actions. Keep it last to
  76. // have it empty if it is not set (for actions that do not use it)
  77. 'GETvar' => 'tx_sijobs_jobapplication[jobApplication]',
  78. 'lookUpTable' => [
  79. 'table' => 'tx_sijobs_domain_model_jobapplication',
  80. 'id_field' => 'uid',
  81. 'alias_field' => 'concat(title, "-", uid)',
  82. 'addWhereClause' => ' AND deleted=0',
  83. 'useUniqueCache' => 1,
  84. 'useUniqueCache_conf' => [
  85. 'strtolower' => 1,
  86. 'spaceCharacter' => '-',
  87. ],
  88. 'languageGetVar' => 'L',
  89. 'languageExceptionUids' => '',
  90. 'languageField' => 'sys_language_uid',
  91. 'transOrigPointerField' => 'l10n_parent',
  92. ],
  93. ],
  94. [
  95. 'GETvar' => 'tx_sijobs_jobapplication[controller]',
  96. 'noMatch' => 'bypass',
  97. ],
  98. ],
  99. '351' => [
  100. [
  101. 'GETvar' => 'tx_sieducation_educationlists[action]',
  102. 'valueMap' => [
  103. 'detail' => 'show',
  104. ],
  105. ],
  106. [
  107. // This is used in several actions. Keep it last to
  108. // have it empty if it is not set (for actions that do not use it)
  109. 'GETvar' => 'tx_sieducation_educationlists[education]',
  110. 'lookUpTable' => [
  111. 'table' => 'tx_sieducation_domain_model_education',
  112. 'id_field' => 'uid',
  113. 'alias_field' => 'concat(title, "-", uid)',
  114. 'addWhereClause' => ' AND deleted=0',
  115. 'useUniqueCache' => 1,
  116. 'useUniqueCache_conf' => [
  117. 'strtolower' => 1,
  118. 'spaceCharacter' => '-',
  119. ],
  120. 'languageGetVar' => 'L',
  121. 'languageExceptionUids' => '',
  122. 'languageField' => 'sys_language_uid',
  123. 'transOrigPointerField' => 'l10n_parent',
  124. ],
  125. ],
  126. [
  127. 'GETvar' => 'tx_sieducation_educationlists[controller]',
  128. 'noMatch' => 'bypass',
  129. ],
  130. ],
  131. ],
  132. 'postVarSets' => [
  133. '_DEFAULT' => [
  134. 'news' => [
  135. [
  136. 'GETvar' => 'tx_news_pi1[news]',
  137. 'lookUpTable' => [
  138. 'table' => 'tx_news_domain_model_news',
  139. 'id_field' => 'uid',
  140. 'alias_field' => 'title',
  141. 'addWhereClause' => ' AND deleted=0',
  142. 'useUniqueCache' => 1,
  143. 'useUniqueCache_conf' => [
  144. 'strtolower' => 1,
  145. 'spaceCharacter' => '-',
  146. ],
  147. 'languageGetVar' => 'L',
  148. 'languageExceptionUids' => '',
  149. 'languageField' => 'sys_language_uid',
  150. 'transOrigPointerField' => 'l10n_parent',
  151. ],
  152. ],
  153. [
  154. 'GETvar' => 'tx_news_pi1[action]',
  155. 'noMatch' => 'bypass',
  156. ],
  157. [
  158. 'GETvar' => 'tx_news_pi1[controller]',
  159. 'noMatch' => 'bypass',
  160. ],
  161. ],
  162. 'fokuslist' => [
  163. 'site' => [
  164. 'GETvar' => 'tx_siarticle_articlelist[@widget_0][currentPage]',
  165. ]
  166. ],
  167. 'branchenratgeber' => [
  168. [
  169. 'GETvar' => 'tx_siinstitution_branchenratgeber[action]',
  170. 'valueMap' => [
  171. 'detail' => 'show',
  172. ],
  173. ],
  174. [
  175. 'GETvar' => 'tx_siinstitution_branchenratgeber[institution]',
  176. 'cond' => [
  177. 'prevValueInList' => 'show',
  178. ],
  179. 'lookUpTable' => [
  180. 'table' => 'tx_siinstitution_domain_model_institution',
  181. 'id_field' => 'uid',
  182. 'alias_field' => 'title',
  183. 'addWhereClause' => ' AND deleted=0',
  184. 'useUniqueCache' => 1,
  185. 'useUniqueCache_conf' => [
  186. 'strtolower' => 1,
  187. 'spaceCharacter' => '-',
  188. ],
  189. 'languageGetVar' => 'L',
  190. 'languageExceptionUids' => '',
  191. 'languageField' => 'sys_language_uid',
  192. 'transOrigPointerField' => 'l10n_parent',
  193. ],
  194. ],
  195. [
  196. 'GETvar' => 'tx_siinstitution_branchenratgeber[controller]',
  197. 'noMatch' => 'bypass',
  198. ],
  199. 'seite' => [
  200. [
  201. 'GETvar' => 'tx_siinstitution_branchenratgeber[@widget_0][currentPage]',
  202. ],
  203. ],
  204. ],
  205. 'createrelation' => [
  206. [
  207. 'GETvar' => 'tx_siinstitution_createrelation[action]',
  208. // Could have a 'valueMap' here to add better names for actions
  209. ],
  210. [
  211. 'GETvar' => 'tx_siinstitution_createrelation[institution]',
  212. 'lookUpTable' => [
  213. 'table' => 'tx_siinstitution_domain_model_institution',
  214. 'id_field' => 'uid',
  215. 'alias_field' => 'title',
  216. 'addWhereClause' => ' AND deleted=0',
  217. 'useUniqueCache' => 1,
  218. 'useUniqueCache_conf' => [
  219. 'strtolower' => 1,
  220. 'spaceCharacter' => '-',
  221. ],
  222. 'languageGetVar' => 'L',
  223. 'languageExceptionUids' => '',
  224. 'languageField' => 'sys_language_uid',
  225. 'transOrigPointerField' => 'l10n_parent',
  226. ],
  227. ],
  228. [
  229. 'GETvar' => 'tx_siinstitution_createrelation[userToRemove]',
  230. // Nothing to use here for a better name than uid
  231. ],
  232. ],
  233. 'general' => [
  234. [
  235. 'GETvar' => 'tx_siinstitution_general[action]',
  236. // Could have a 'valueMap' here to add better names for actions
  237. ],
  238. [
  239. // This parameters exists only for some actions, so we add it
  240. // Paraeters for other actions will have be normal url parameters
  241. // because we cannot make config with may parameters
  242. 'GETvar' => 'tx_siinstitution_general[institution]',
  243. 'lookUpTable' => [
  244. 'table' => 'tx_siinstitution_domain_model_institution',
  245. 'id_field' => 'uid',
  246. 'alias_field' => 'title',
  247. 'addWhereClause' => ' AND deleted=0',
  248. 'useUniqueCache' => 1,
  249. 'useUniqueCache_conf' => [
  250. 'strtolower' => 1,
  251. 'spaceCharacter' => '-',
  252. ],
  253. 'languageGetVar' => 'L',
  254. 'languageExceptionUids' => '',
  255. 'languageField' => 'sys_language_uid',
  256. 'transOrigPointerField' => 'l10n_parent',
  257. ],
  258. ],
  259. ],
  260. 'forum' => [
  261. [
  262. 'GETvar' => 'tx_siexpertforum_forum[action]',
  263. ],
  264. [
  265. 'GETvar' => 'tx_siexpertforum_forum[controller]',
  266. 'userFunc' => 'Sozialinfo\\Base\\Utility\\RealurlHelper->convertControllerName',
  267. ],
  268. [
  269. 'GETvar' => 'tx_siexpertforum_forum[section]',
  270. 'cond' => [
  271. 'prevValueInList' => 'Section',
  272. ],
  273. 'lookUpTable' => [
  274. 'table' => 'tx_siexpertforum_domain_model_section',
  275. 'id_field' => 'uid',
  276. 'alias_field' => 'title',
  277. 'addWhereClause' => ' AND deleted=0',
  278. 'useUniqueCache' => 1,
  279. 'useUniqueCache_conf' => [
  280. 'strtolower' => 1,
  281. 'spaceCharacter' => '-',
  282. ],
  283. 'languageGetVar' => 'L',
  284. 'languageExceptionUids' => '',
  285. 'languageField' => 'sys_language_uid',
  286. 'transOrigPointerField' => 'l10n_parent',
  287. ],
  288. ],
  289. [
  290. 'GETvar' => 'tx_siexpertforum_forum[topic]',
  291. 'lookUpTable' => [
  292. 'table' => 'tx_siexpertforum_domain_model_topic',
  293. 'id_field' => 'uid',
  294. 'alias_field' => 'title',
  295. 'maxLength' => 50,
  296. 'addWhereClause' => ' AND deleted=0',
  297. 'useUniqueCache' => 1,
  298. 'useUniqueCache_conf' => [
  299. 'strtolower' => 1,
  300. 'spaceCharacter' => '-',
  301. ],
  302. 'languageGetVar' => 'L',
  303. 'languageExceptionUids' => '',
  304. 'languageField' => 'sys_language_uid',
  305. 'transOrigPointerField' => 'l10n_parent',
  306. ],
  307. ],
  308. [
  309. 'GETvar' => 'tx_siexpertforum_forum[post]',
  310. ],
  311. ],
  312. ],
  313. ],
  314. 'pagePath' => [
  315. 'rootpage_id' => 1,
  316. ]
  317. ];