setup.txt 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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. switchableControllerActions {
  55. Member {
  56. 1 = getMembers
  57. }
  58. }
  59. settings < plugin.tx_otwidgets_members.settings
  60. }
  61. lib.members_ca = USER
  62. lib.members_ca {
  63. userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
  64. extensionName = OtWidgets
  65. pluginName = Members
  66. vendorName = Opentalent
  67. controller = Member
  68. action = getMembersCa
  69. switchableControllerActions {
  70. Member {
  71. 1 = getMembersCa
  72. }
  73. }
  74. settings < plugin.tx_otwidgets_members.settings
  75. }
  76. lib.auth = USER
  77. lib.auth {
  78. userFunc = Opentalent\OtConnect\OtAuthenticationService->logout
  79. }
  80. # Overrides fluid_styled_content contents (builtin contents)
  81. #lib.contentElement.templateRootPaths.10 = EXT:ot_templating/Resources/Private/Templates/Ext/fluid_styled_content/Default/Templates/
  82. # **** Settings: récupère les variables utilisateur *****
  83. # **** Page: configuration générale de la page courante ****
  84. # **** Templating : configuration du template Flux ****
  85. page = PAGE
  86. page {
  87. typeNum = 0
  88. 5 = USER
  89. 5 {
  90. userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
  91. extensionName = Flux
  92. vendorName = FluidTYPO3
  93. pluginName = Page
  94. }
  95. 10 >
  96. }
  97. plugin.tx_flux {
  98. # Allow pages which have is_siteroot = 1 to inherit chosen template from parent.
  99. # Disable this to prevent subsites in a multisite environment from using the same template as the immediate parent of that site root.
  100. siteRootInheritance = 1
  101. }
  102. page.config.doctype=html5
  103. page.meta {
  104. keywords.field = keywords
  105. description.field = description
  106. author.field = author
  107. robots = index,follow,archive
  108. viewport = width=device-width
  109. }
  110. plugin.tx_ottemplating {
  111. view {
  112. templateRootPaths.0 = {$templateRootPath}
  113. partialRootPaths.0 = {$partialRootPath}
  114. layoutRootPaths.0 = {$layoutRootPath}
  115. }
  116. settings {
  117. # constantsnpm install -g node-sass
  118. opentalentWebsite = {$plugin.tx_ottemplating.settings.opentalent.website}
  119. opentalentLogoPath = {$plugin.tx_ottemplating.settings.opentalent.logoPath}
  120. opentalentFileStorageUrl = {$plugin.tx_ottemplating.settings.opentalent.fileStorageUrl}
  121. opentalentDashboardUrl = {$plugin.tx_ottemplating.settings.opentalent.dashboardUrl}
  122. opentalentLogoutUrl = {$plugin.tx_ottemplating.settings.opentalent.logoutUrl}
  123. structureId = {$plugin.tx_ottemplating.settings.organization.id}
  124. structureLogoId = {$plugin.tx_ottemplating.settings.organization.logoid}
  125. structureName = {$plugin.tx_ottemplating.settings.organization.name}
  126. structureEmail = {$plugin.tx_ottemplating.settings.organization.email}
  127. structureIsNetwork = {$plugin.tx_ottemplating.settings.organization.is_network}
  128. networkLogo = {$plugin.tx_ottemplating.settings.network.logo}
  129. networkName = {$plugin.tx_ottemplating.settings.network.name}
  130. networkUrl = {$plugin.tx_ottemplating.settings.network.url}
  131. # computed
  132. structureLogoUrl = {$plugin.tx_ottemplating.settings.opentalent.fileStorageUrl}{$plugin.tx_ottemplating.settings.organization.logoid}/0x60
  133. networkLogoUrl = /typo3conf/ext/ot_templating/Resources/Public/assets/media/{$plugin.tx_ottemplating.settings.network.logo}
  134. # Default values for flux parameters
  135. themeColor = blue
  136. displayCarousel = 1
  137. staticDonors = 0
  138. eventsLimit = 5
  139. eventsPeriod = 8
  140. }
  141. }
  142. # **** Form extension ****
  143. # @see https://docs.typo3.org/c/typo3/cms-form/9.5/en-us/Introduction/Index.html
  144. module.tx_form {
  145. settings {
  146. yamlConfigurations {
  147. 100 = EXT:ot_templating/Configuration/Form/CustomFormSetup.yaml
  148. }
  149. }
  150. }
  151. plugin.tx_form {
  152. settings {
  153. yamlConfigurations {
  154. 100 = EXT:ot_templating/Configuration/Form/CustomFormSetup.yaml
  155. }
  156. formDefinitionOverrides {
  157. Contact {
  158. finishers {
  159. 0 {
  160. options {
  161. recipientAddress = {$plugin.tx_ottemplating.settings.organization.email}
  162. }
  163. }
  164. }
  165. }
  166. }
  167. }
  168. }