setup.txt 6.5 KB

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