setup.txt 6.5 KB

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