setup.typoscript 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. #### Configuration typoscript des sites
  2. # **** Options de debug ****
  3. [applicationContext == "Development"]
  4. config.debug = 1
  5. config.contentObjectExceptionHandler = 0
  6. config.admPanel = 0
  7. plugin.tx_vhs.settings.debug = 0
  8. plugin.tx_vhs.settings.asset.debug = 0
  9. [end]
  10. [applicationContext == "Testing"]
  11. config.debug = 1
  12. [end]
  13. config.contentObjectExceptionHandler = 0
  14. # **** Configuration générale ****
  15. config.language = fr
  16. config.locale_all = fr_FR.utf-8
  17. config.concatenateCss = 1
  18. config.compressCss = 1
  19. config.compressJs = 1
  20. # Important: if the filenames are not hashed, it ends up breaking the filename's length limit!
  21. plugin.tx_vhs.assets.mergedAssetsUseHashedFilename = 1
  22. # Add the favicon
  23. page.shortcutIcon = EXT:ot_templating/Resources/Public/Icons/favicon.ico
  24. # **** Déclaration des plugins
  25. lib.auth = USER
  26. lib.auth {
  27. userFunc = Opentalent\OtConnect\OtAuthenticationService->logout
  28. }
  29. # Overrides fluid_styled_content contents (builtin contents)
  30. #lib.contentElement.templateRootPaths.10 = EXT:ot_templating/Resources/Private/Templates/Ext/fluid_styled_content/Default/Templates/
  31. # **** Page: configuration générale de la page courante ****
  32. page = PAGE
  33. page {
  34. typeNum = 0
  35. 5 = USER
  36. 5 {
  37. userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
  38. extensionName = Flux
  39. vendorName = FluidTYPO3
  40. pluginName = Page
  41. }
  42. 10 >
  43. }
  44. page.config.doctype=html5
  45. page.meta {
  46. keywords.field = keywords
  47. description.field = description
  48. author.field = author
  49. robots = index,follow,archive
  50. viewport = width=device-width
  51. }
  52. # **** Configuration des extensions ****
  53. plugin.tx_flux {
  54. # Allow pages which have is_siteroot = 1 to inherit chosen template from parent.
  55. # Disable this to prevent subsites in a multisite environment from using the same template as the immediate parent of that site root.
  56. siteRootInheritance = 0
  57. }
  58. plugin.tx_ottemplating {
  59. view {
  60. templateRootPaths.0 = {$templateRootPath}
  61. partialRootPaths.0 = {$partialRootPath}
  62. layoutRootPaths.0 = {$layoutRootPath}
  63. }
  64. settings {
  65. opentalentLogoPath = {$plugin.tx_ottemplating.settings.opentalent.logoPath}
  66. structureId = {$plugin.tx_ottemplating.settings.organization.id}
  67. structureLogoId = {$plugin.tx_ottemplating.settings.organization.logoid}
  68. structureName = {$plugin.tx_ottemplating.settings.organization.name}
  69. structureEmail = {$plugin.tx_ottemplating.settings.organization.email}
  70. structureFacebook = {$plugin.tx_ottemplating.settings.organization.facebook}
  71. structureTwitter = {$plugin.tx_ottemplating.settings.organization.twitter}
  72. structureInstagram = {$plugin.tx_ottemplating.settings.organization.instagram}
  73. structureYoutube = {$plugin.tx_ottemplating.settings.organization.youtube}
  74. structureIsNetwork = {$plugin.tx_ottemplating.settings.organization.is_network}
  75. networkLogo = {$plugin.tx_ottemplating.settings.network.logo}
  76. networkName = {$plugin.tx_ottemplating.settings.network.name}
  77. networkUrl = {$plugin.tx_ottemplating.settings.network.url}
  78. cmfUrl = {$plugin.tx_ottemplating.settings.network.cmfUrl}
  79. # aliases
  80. organizationId = {$plugin.tx_ottemplating.settings.organization.id}
  81. organizationIsNetwork = {$plugin.tx_ottemplating.settings.organization.is_network}
  82. # computed
  83. networkLogoUrl = /typo3conf/ext/ot_templating/Resources/Public/media/{$plugin.tx_ottemplating.settings.network.logo}
  84. # Default values for flux parameters
  85. template = Classic
  86. themeColor = light-blue
  87. displayCarousel = {$plugin.tx_ottemplating.settings.appearance.carousel}
  88. staticDonors = {$plugin.tx_ottemplating.settings.donors.static}
  89. eventsLimit = {$plugin.tx_ottemplating.settings.events.limit}
  90. eventsPeriod = {$plugin.tx_ottemplating.settings.events.period}
  91. }
  92. }
  93. module.tx_otcustomizer {
  94. view {
  95. templateRootPaths.0 = {$templateRootPath}
  96. partialRootPaths.0 = {$partialRootPath}
  97. layoutRootPaths.0 = {$layoutRootPath}
  98. }
  99. }
  100. # * Form extension
  101. # @see https://docs.typo3.org/c/typo3/cms-form/9.5/en-us/Introduction/Index.html
  102. # -- BE integration
  103. module.tx_form {
  104. settings {
  105. yamlConfigurations {
  106. 100 = EXT:ot_templating/Configuration/Form/CustomFormSetup.yaml
  107. }
  108. # yamlSettingsOverrides {
  109. # persistenceManager {
  110. # allowedFileMounts {
  111. # 10 = 1:/form_definitions/$organizationId
  112. # }
  113. # }
  114. # }
  115. }
  116. }
  117. # -- FE integration
  118. plugin.tx_form {
  119. settings {
  120. yamlConfigurations {
  121. 100 = EXT:ot_templating/Configuration/Form/CustomFormSetup.yaml
  122. }
  123. formDefinitionOverrides {
  124. ContactForm {
  125. finishers {
  126. 0 {
  127. options {
  128. recipients = {$plugin.tx_ottemplating.settings.organization.email}
  129. }
  130. }
  131. }
  132. }
  133. }
  134. }
  135. }
  136. # Create the form object to render with:
  137. # <f:cObject typoscriptObjectPath="lib.tx_ottemplating.widgets.contact"/>
  138. lib.tx_ottemplating.widgets.contact = USER_INT
  139. lib.tx_ottemplating.widgets.contact {
  140. userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
  141. extensionName = Form
  142. pluginName = Formframework
  143. vendorName = TYPO3\CMS
  144. switchableControllerActions {
  145. FormFrontend {
  146. 1 = perform
  147. }
  148. }
  149. settings.persistenceIdentifier = EXT:ot_templating/Resources/Private/Forms/Contact.form.yaml
  150. }
  151. # * News extension
  152. # @see https://docs.typo3.org/p/georgringer/news/master/en-us/Introduction/Index.html
  153. # create the list and the details objects
  154. # they can be added to a template with:
  155. # <f:cObject typoscriptObjectPath="lib.tx_ottemplating.widgets.news_list" />
  156. # <f:cObject typoscriptObjectPath="lib.tx_ottemplating.widgets.news_detail" />
  157. lib.tx_ottemplating.widgets {
  158. news_list = USER
  159. news_list {
  160. userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
  161. extensionName = News
  162. pluginName = Pi1
  163. vendorName = GeorgRinger
  164. action = list
  165. switchableControllerActions {
  166. News {
  167. 1 = list
  168. }
  169. }
  170. settings < plugin.tx_news.settings
  171. settings {
  172. # settings for the news.list plugin
  173. # @see https://docs.typo3.org/p/georgringer/news/master/en-us/AdministratorManual/Configuration/TypoScript/#
  174. list.paginate {
  175. insertAbove = 0
  176. }
  177. }
  178. }
  179. news_detail < lib.tx_ottemplating.widgets.news_list
  180. news_detail {
  181. action = detail
  182. switchableControllerActions.News.1 = detail
  183. }
  184. news_latest < lib.tx_ottemplating.widgets.news_list
  185. news_latest {
  186. action = list
  187. settings < plugin.tx_news.settings
  188. settings {
  189. # settings for the news.list plugin
  190. # @see https://docs.typo3.org/p/georgringer/news/master/en-us/AdministratorManual/Configuration/TypoScript/#
  191. list.paginate {
  192. insertAbove = 0
  193. }
  194. topNewsFirst = 1
  195. media {
  196. maxWidth = 50px
  197. maxHeight = 50px
  198. }
  199. media.maxWidth = 50px
  200. media.maxHeight = 50px
  201. limit = 2
  202. hidePagination = 1
  203. defaultDetailPid= {newsPageUid}
  204. }
  205. }
  206. }
  207. ## hCaptcha
  208. plugin.tx_hcaptcha {
  209. settings {
  210. publicKey = a35a22e0-6127-4905-817c-3f8b7c7e49e8
  211. privateKey = 0x459461d6f52061d3b79eF603F2BcA30497e949c7
  212. }
  213. }