setup.txt 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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. # **** Settings: récupère les variables utilisateur *****
  81. # **** Page: configuration générale de la page courante ****
  82. # **** Templating : configuration du template Flux ****
  83. page = PAGE
  84. page {
  85. typeNum = 0
  86. 5 = USER
  87. 5 {
  88. userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
  89. extensionName = Flux
  90. vendorName = FluidTYPO3
  91. pluginName = Page
  92. }
  93. 10 >
  94. }
  95. plugin.tx_flux {
  96. # Allow pages which have is_siteroot = 1 to inherit chosen template from parent.
  97. # Disable this to prevent subsites in a multisite environment from using the same template as the immediate parent of that site root.
  98. siteRootInheritance = 1
  99. }
  100. page.config.doctype=html5
  101. page.meta {
  102. keywords.field = keywords
  103. description.field = description
  104. author.field = author
  105. robots = index,follow,archive
  106. viewport = width=device-width
  107. }
  108. page.includeCSS {
  109. fontAwesome = {$publicRootPath}assets/style/ext/font-awesome/css/all.css
  110. slick = {$publicRootPath}assets/style/ext/slick.css
  111. datepicker = {$publicRootPath}assets/style/ext/jquery-ui.css
  112. leaflet = {$publicRootPath}assets/style/ext/leaflet.css
  113. }
  114. page.includeJS {
  115. jquery = {$publicRootPath}assets/script/jquery-3.4.1.min.js
  116. slick = {$publicRootPath}assets/script/slick.min.js
  117. datepicker = {$publicRootPath}assets/script/jquery-ui.js
  118. leaflet = {$publicRootPath}assets/script/leaflet.js
  119. main = {$publicRootPath}assets/script/main.js
  120. }
  121. page.includeJSFooter {
  122. }
  123. plugin.tx_ottemplating {
  124. view {
  125. templateRootPaths.0 = {$templateRootPath}
  126. partialRootPaths.0 = {$partialRootPath}
  127. layoutRootPaths.0 = {$layoutRootPath}
  128. }
  129. settings {
  130. # constantsnpm install -g node-sass
  131. opentalentWebsite = {$plugin.tx_ottemplating.settings.opentalent.website}
  132. opentalentLogoPath = {$plugin.tx_ottemplating.settings.opentalent.logoPath}
  133. opentalentFileStorageUrl = {$plugin.tx_ottemplating.settings.opentalent.fileStorageUrl}
  134. opentalentDashboardUrl = {$plugin.tx_ottemplating.settings.opentalent.dashboardUrl}
  135. opentalentLogoutUrl = {$plugin.tx_ottemplating.settings.opentalent.logoutUrl}
  136. structureId = {$plugin.tx_ottemplating.settings.organization.id}
  137. structureLogoId = {$plugin.tx_ottemplating.settings.organization.logoid}
  138. structureName = {$plugin.tx_ottemplating.settings.organization.name}
  139. structureEmail = {$plugin.tx_ottemplating.settings.organization.email}
  140. structureIsNetwork = {$plugin.tx_ottemplating.settings.organization.is_network}
  141. networkLogo = {$plugin.tx_ottemplating.settings.network.logo}
  142. networkName = {$plugin.tx_ottemplating.settings.network.name}
  143. networkUrl = {$plugin.tx_ottemplating.settings.network.url}
  144. # computed
  145. structureLogoUrl = {$plugin.tx_ottemplating.settings.opentalent.fileStorageUrl}{$plugin.tx_ottemplating.settings.organization.logoid}/0x60
  146. networkLogoUrl = /typo3conf/ext/ot_templating/Resources/Public/assets/media/{$plugin.tx_ottemplating.settings.network.logo}
  147. # Default values for flux parameters
  148. themeColor = blue
  149. displayCarousel = 1
  150. staticDonors = 0
  151. eventsLimit = 5
  152. eventsPeriod = 8
  153. }
  154. }
  155. # **** Form extension ****
  156. # @see https://docs.typo3.org/c/typo3/cms-form/9.5/en-us/Introduction/Index.html
  157. module.tx_form {
  158. settings {
  159. yamlConfigurations {
  160. 100 = EXT:ot_templating/Configuration/Form/CustomFormSetup.yaml
  161. }
  162. }
  163. }
  164. plugin.tx_form {
  165. settings {
  166. yamlConfigurations {
  167. 100 = EXT:ot_templating/Configuration/Form/CustomFormSetup.yaml
  168. }
  169. formDefinitionOverrides {
  170. Contact {
  171. finishers {
  172. 0 {
  173. options {
  174. recipientAddress = {$plugin.tx_ottemplating.settings.organization.email}
  175. }
  176. }
  177. }
  178. }
  179. }
  180. }
  181. }