setup.txt 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. #### Configuration typoscript des sites
  2. # **** Options de debug ****
  3. [applicationContext == Development*]
  4. config.debug = 1
  5. config.contentObjectExceptionHandler = 0
  6. config.no_cache = 1
  7. config.admPanel = 0
  8. plugin.tx_vhs.settings.debug = 0
  9. plugin.tx_vhs.settings.asset.debug = 0
  10. [end]
  11. [applicationContext == Testing*]
  12. config.debug = 1
  13. [end]
  14. config.contentObjectExceptionHandler = 0
  15. # **** Configuration générale ****
  16. config.language = fr
  17. config.locale_all = fr_FR.utf-8
  18. config.concatenateCss = 1
  19. config.compressCss = 1
  20. config.compressJs = 1
  21. plugin.tx_vhs.assets.mergedAssetsUseHashedFilename = 1
  22. # **** Déclaration des plugins
  23. lib.auth = USER
  24. lib.auth {
  25. userFunc = Opentalent\OtConnect\OtAuthenticationService->logout
  26. }
  27. # Overrides fluid_styled_content contents (builtin contents)
  28. #lib.contentElement.templateRootPaths.10 = EXT:ot_templating/Resources/Private/Templates/Ext/fluid_styled_content/Default/Templates/
  29. # **** Page: configuration générale de la page courante ****
  30. page = PAGE
  31. page {
  32. typeNum = 0
  33. 5 = USER
  34. 5 {
  35. userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
  36. extensionName = Flux
  37. vendorName = FluidTYPO3
  38. pluginName = Page
  39. }
  40. 10 >
  41. }
  42. page.config.doctype=html5
  43. page.meta {
  44. keywords.field = keywords
  45. description.field = description
  46. author.field = author
  47. robots = index,follow,archive
  48. viewport = width=device-width
  49. }
  50. # **** Configuration des extensions ****
  51. plugin.tx_flux {
  52. # Allow pages which have is_siteroot = 1 to inherit chosen template from parent.
  53. # Disable this to prevent subsites in a multisite environment from using the same template as the immediate parent of that site root.
  54. siteRootInheritance = 0
  55. }
  56. plugin.tx_ottemplating {
  57. view {
  58. templateRootPaths.0 = {$templateRootPath}
  59. partialRootPaths.0 = {$partialRootPath}
  60. layoutRootPaths.0 = {$layoutRootPath}
  61. }
  62. settings {
  63. opentalentWebsite = {$plugin.tx_ottemplating.settings.opentalent.website}
  64. opentalentLogoPath = {$plugin.tx_ottemplating.settings.opentalent.logoPath}
  65. opentalentFileStorageUrl = {$plugin.tx_ottemplating.settings.opentalent.fileStorageUrl}
  66. opentalentDashboardUrl = {$plugin.tx_ottemplating.settings.opentalent.dashboardUrl}
  67. opentalentLogoutUrl = {$plugin.tx_ottemplating.settings.opentalent.logoutUrl}
  68. structureId = {$plugin.tx_ottemplating.settings.organization.id}
  69. structureLogoId = {$plugin.tx_ottemplating.settings.organization.logoid}
  70. structureName = {$plugin.tx_ottemplating.settings.organization.name}
  71. structureEmail = {$plugin.tx_ottemplating.settings.organization.email}
  72. structureIsNetwork = {$plugin.tx_ottemplating.settings.organization.is_network}
  73. networkLogo = {$plugin.tx_ottemplating.settings.network.logo}
  74. networkName = {$plugin.tx_ottemplating.settings.network.name}
  75. networkUrl = {$plugin.tx_ottemplating.settings.network.url}
  76. cmfUrl = {$plugin.tx_ottemplating.settings.network.cmfUrl}
  77. # aliases
  78. organizationId = {$plugin.tx_ottemplating.settings.organization.id}
  79. organizationIsNetwork = {$plugin.tx_ottemplating.settings.organization.is_network}
  80. # computed
  81. structureLogoUrl = {$plugin.tx_ottemplating.settings.opentalent.fileStorageUrl}{$plugin.tx_ottemplating.settings.organization.logoid}/0x60
  82. networkLogoUrl = /typo3conf/ext/ot_templating/Resources/Public/media/{$plugin.tx_ottemplating.settings.network.logo}
  83. # Default values for flux parameters
  84. template = Classic
  85. themeColor = light-blue
  86. displayCarousel = {$plugin.tx_ottemplating.settings.appearance.carousel}
  87. staticDonors = {$plugin.tx_ottemplating.settings.donors.static}
  88. eventsLimit = {$plugin.tx_ottemplating.settings.events.limit}
  89. eventsPeriod = {$plugin.tx_ottemplating.settings.events.period}
  90. }
  91. }
  92. # * Form extension
  93. # @see https://docs.typo3.org/c/typo3/cms-form/9.5/en-us/Introduction/Index.html
  94. # -- BE integration
  95. module.tx_form {
  96. settings {
  97. yamlConfigurations {
  98. 100 = EXT:ot_templating/Configuration/Form/CustomFormSetup.yaml
  99. }
  100. }
  101. }
  102. # -- FE integration
  103. plugin.tx_form {
  104. settings {
  105. yamlConfigurations {
  106. 100 = EXT:ot_templating/Configuration/Form/CustomFormSetup.yaml
  107. }
  108. formDefinitionOverrides {
  109. ContactForm {
  110. finishers {
  111. 0 {
  112. options {
  113. recipientAddress = {$plugin.tx_ottemplating.settings.organization.email}
  114. }
  115. }
  116. }
  117. }
  118. }
  119. }
  120. }
  121. # Create the form object to render with:
  122. # <f:cObject typoscriptObjectPath="lib.tx_ottemplating.widgets.contact"/>
  123. lib.tx_ottemplating.widgets.contact = USER_INT
  124. lib.tx_ottemplating.widgets.contact {
  125. userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
  126. extensionName = Form
  127. pluginName = Formframework
  128. vendorName = TYPO3\CMS
  129. switchableControllerActions {
  130. FormFrontend {
  131. 1 = perform
  132. }
  133. }
  134. settings.persistenceIdentifier = EXT:ot_templating/Resources/Private/Forms/Contact.form.yaml
  135. }
  136. # * News extension
  137. # @see https://docs.typo3.org/p/georgringer/news/master/en-us/Introduction/Index.html
  138. # create the list and the details objects
  139. # they can be added to a template with:
  140. # <f:cObject typoscriptObjectPath="lib.tx_ottemplating.widgets.news_list" />
  141. # <f:cObject typoscriptObjectPath="lib.tx_ottemplating.widgets.news_detail" />
  142. lib.tx_ottemplating.widgets {
  143. news_list = USER
  144. news_list {
  145. userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
  146. extensionName = News
  147. pluginName = Pi1
  148. vendorName = GeorgRinger
  149. action = list
  150. switchableControllerActions {
  151. News {
  152. 1 = list
  153. }
  154. }
  155. settings < plugin.tx_news.settings
  156. settings {
  157. # settings for the news.list plugin
  158. # @see https://docs.typo3.org/p/georgringer/news/master/en-us/AdministratorManual/Configuration/TypoScript/#
  159. list.paginate {
  160. insertAbove = 0
  161. }
  162. }
  163. }
  164. news_detail < lib.tx_ottemplating.widgets.news_list
  165. news_detail {
  166. action = detail
  167. switchableControllerActions.News.1 = detail
  168. }
  169. }