setup.txt 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. # TODO: reprendre les formulaires custom
  2. # TODO: prévoir les fallbacks no-script (menu, donors)
  3. # -- après déploiement beta
  4. # TODO: DEPRECATION V10 corriger les appels ` $this->forward('...');`, `\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(` et `\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(`
  5. # TODO: Placer tous les mots utilisés dans le fichier de traduction
  6. # TODO: obtenir les infos suivantes via l'API: is_network, email, name, twitter, logo, network_logo, network_name, network_url
  7. # TODO: créer deux ou trois layouts supplémentaires
  8. # TODO: filtrer les pages sans contenu (en option dans les constants?)
  9. # TODO: rédiger une doc dev
  10. # TODO: Rédiger une doc utilisateurs
  11. # TODO: permettre de mettre en avant des évènements (appraissent plus longtemps à l'avance)
  12. # TODO: tester les widgets
  13. # TODO: ajouter un plugin "réseaux sociaux"
  14. # TODO: tester l'intégration matomo
  15. # TODO: permettre d'ajouter du contenu de type fichier
  16. # TODO: permettre d'ajouter du contenu de type vidéos
  17. # TODO: carroussel: ne pas redimensionner les photos mais les rogner
  18. # TODO: ajouter une recherche fulltext sur le site
  19. # TODO: créer un module de personnalisation du site
  20. # TODO: Faire des sites de demo / de test pour chaque thème avec un compte bidon mais représentatif
  21. # TODO: trouver un système pour garder à jour les mentions légales
  22. # TODO: Réflechir à un système pour pouvoir afficher un message sur tous les minisites, type 'Maintenance prévue le...' ou autre
  23. ## DEBUG MODE: tout commenter pour la prod ##
  24. config.debug = 1
  25. config.contentObjectExceptionHandler = 0
  26. config.no_cache = 1
  27. config.admPanel = 0
  28. plugin.tx_vhs.settings.debug = 0
  29. plugin.tx_vhs.settings.asset.debug = 0
  30. ####
  31. # **** Configuration générale ****
  32. config.language = fr
  33. config.locale_all = fr_FR.utf-8
  34. config.concatenateCss = 1
  35. config.compressCss = 1
  36. config.compressJs = 1
  37. # Déclaration des plugins
  38. lib.allEvents = USER
  39. lib.allEvents {
  40. userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
  41. extensionName = OtWidgets
  42. pluginName = AllEvents
  43. vendorName = Opentalent
  44. settings < plugin.tx_otwidgets_allevents.settings
  45. }
  46. lib.members = USER
  47. lib.members {
  48. userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
  49. extensionName = OtWidgets
  50. pluginName = Members
  51. vendorName = Opentalent
  52. controller = Member
  53. action = getMembers
  54. settings < plugin.tx_otwidgets_members.settings
  55. }
  56. lib.members_ca = USER
  57. lib.members_ca {
  58. userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
  59. extensionName = OtWidgets
  60. pluginName = Members
  61. vendorName = Opentalent
  62. controller = Member
  63. action = getMembersCa
  64. settings < plugin.tx_otwidgets_members.settings
  65. }
  66. lib.auth = USER
  67. lib.auth {
  68. userFunc = Opentalent\OtConnect\OtAuthenticationService->logout
  69. }
  70. # **** Settings: récupère les variables utilisateur *****
  71. # **** Page: configuration générale de la page courante ****
  72. # **** Templating : configuration du template Flux ****
  73. page = PAGE
  74. page {
  75. typeNum = 0
  76. 5 = USER
  77. 5 {
  78. userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
  79. extensionName = Flux
  80. vendorName = FluidTYPO3
  81. pluginName = Page
  82. }
  83. 10 >
  84. }
  85. plugin.tx_flux {
  86. # Allow pages which have is_siteroot = 1 to inherit chosen template from parent.
  87. # Disable this to prevent subsites in a multisite environment from using the same template as the immediate parent of that site root.
  88. siteRootInheritance = 1
  89. }
  90. page.config.doctype=html5
  91. page.meta {
  92. keywords.field = keywords
  93. description.field = description
  94. author.field = author
  95. robots = index,follow,archive
  96. viewport = width=device-width
  97. }
  98. page.includeCSS {
  99. fontAwesome = {$publicRootPath}assets/style/ext/font-awesome/css/all.css
  100. slick = {$publicRootPath}assets/style/ext/slick.css
  101. datepicker = {$publicRootPath}assets/style/ext/jquery-ui.css
  102. leaflet = {$publicRootPath}assets/style/ext/leaflet.css
  103. }
  104. page.includeJS {
  105. jquery = {$publicRootPath}assets/script/jquery-3.4.1.min.js
  106. slick = {$publicRootPath}assets/script/slick.min.js
  107. datepicker = {$publicRootPath}assets/script/jquery-ui.js
  108. leaflet = {$publicRootPath}assets/script/leaflet.js
  109. main = {$publicRootPath}assets/script/main.js
  110. }
  111. page.includeJSFooter {
  112. }
  113. plugin.tx_ottemplating {
  114. view {
  115. templateRootPaths.0 = {$templateRootPath}
  116. partialRootPaths.0 = {$partialRootPath}
  117. layoutRootPaths.0 = {$layoutRootPath}
  118. }
  119. settings {
  120. # constantsnpm install -g node-sass
  121. opentalentWebsite = {$plugin.tx_ottemplating.settings.opentalent.website}
  122. opentalentLogoPath = {$plugin.tx_ottemplating.settings.opentalent.logoPath}
  123. opentalentFileStorageUrl = {$plugin.tx_ottemplating.settings.opentalent.fileStorageUrl}
  124. opentalentDashboardUrl = {$plugin.tx_ottemplating.settings.opentalent.dashboardUrl}
  125. opentalentLogoutUrl = {$plugin.tx_ottemplating.settings.opentalent.logoutUrl}
  126. structureId = {$plugin.tx_ottemplating.settings.organization.id}
  127. structureLogoId = {$plugin.tx_ottemplating.settings.organization.logoid}
  128. structureName = {$plugin.tx_ottemplating.settings.organization.name}
  129. structureEmail = {$plugin.tx_ottemplating.settings.organization.email}
  130. structureIsNetwork = {$plugin.tx_ottemplating.settings.organization.is_network}
  131. networkLogo = {$plugin.tx_ottemplating.settings.network.logo}
  132. networkName = {$plugin.tx_ottemplating.settings.network.name}
  133. networkUrl = {$plugin.tx_ottemplating.settings.network.url}
  134. # computed
  135. structureLogoUrl = {$plugin.tx_ottemplating.settings.opentalent.fileStorageUrl}{$plugin.tx_ottemplating.settings.organization.logoid}/0x60
  136. networkLogoUrl = /typo3conf/ext/ot_templating/Resources/Public/assets/media/{$plugin.tx_ottemplating.settings.network.logo}
  137. # Default values for flux parameters
  138. themeColor = blue
  139. displayCarousel = 1
  140. staticDonors = 0
  141. eventsLimit = 5
  142. eventsPeriod = 8
  143. }
  144. }
  145. # **** Form extension ****
  146. # @see https://docs.typo3.org/c/typo3/cms-form/9.5/en-us/Introduction/Index.html
  147. module.tx_form {
  148. settings {
  149. yamlConfigurations {
  150. 100 = EXT:ot_templating/Configuration/Form/CustomFormSetup.yaml
  151. }
  152. }
  153. }
  154. plugin.tx_form {
  155. settings {
  156. yamlConfigurations {
  157. 100 = EXT:ot_templating/Configuration/Form/CustomFormSetup.yaml
  158. }
  159. formDefinitionOverrides {
  160. Contact {
  161. finishers {
  162. 0 {
  163. options {
  164. recipientAddress = {$plugin.tx_ottemplating.settings.organization.email}
  165. }
  166. }
  167. }
  168. }
  169. }
  170. }
  171. }