sonata_page.yaml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. # more information can be found here http://sonata-project.org/bundles/page
  2. sonata_page:
  3. slugify_service: sonata.core.slugify.cocur
  4. multisite: host_with_path_by_locale # host
  5. use_streamed_response: false # set the value to false in debug mode or if the reverse proxy does not handle streamed response
  6. class:
  7. page: Chamilo\PageBundle\Entity\Page
  8. site: Chamilo\PageBundle\Entity\Site
  9. block: Chamilo\PageBundle\Entity\Block
  10. snapshot: Chamilo\PageBundle\Entity\Snapshot
  11. ignore_uri_patterns:
  12. - ^/administration(.*) # sonata admin
  13. - ^/admin(.*) # chamilo admin
  14. - ^/main(.*)
  15. - ^/plugin(.*)
  16. - /(.*)/(.*)administration(.*)/
  17. - ^/api/(.*)
  18. - ^/login/(.*)
  19. - ^/connect/(.*)
  20. - ^/packages/(.*)
  21. - ^/package/(.*)
  22. - ^install
  23. - ^/install/(.*)
  24. - install.php
  25. - install.php/(.*)
  26. - install.php/packages/(.*)
  27. - install.php/package/(.*)
  28. - install.php/(.*)/(.*)
  29. - ^/bundles/(.*)
  30. - ^/_wdt/(.*)
  31. - ^/_profiler/(.*)
  32. - ^/userportal
  33. - ^/userportal/(.*)
  34. - ^/internal_page/(.*)
  35. - ^/js/(.*)
  36. - ^/faq/(.*)
  37. - ^/faq
  38. - ^/news
  39. - ^/user/(.*)
  40. - ^/online
  41. - ^/online/(.*)
  42. - ^/news/(.*)
  43. - ^/courses/(.*)
  44. - ^/editor/(.*)
  45. - ^/resource/(.*)
  46. - ^/front/editor
  47. - ^/contact(.*) # sonata admin
  48. - ^/cms/pages/latest
  49. - ^/cms/pages/latest/(.*)
  50. ignore_route_patterns:
  51. - (.*)administration(.*) # ignore admin route, ie route containing 'admin' # sonata admin
  52. - ^_(.*) # ignore symfony routes
  53. - fos_user(.*)
  54. - sylius_flow(.*)
  55. ignore_routes:
  56. - home
  57. - internal_page
  58. - elfinder
  59. - login
  60. - logout
  61. - fos_js_routing_js
  62. - _settings
  63. - main
  64. - sonata_page_cache_esi
  65. - sonata_page_cache_ssi
  66. - sonata_page_js_sync_cache
  67. - sonata_page_js_async_cache
  68. - sonata_cache_esi
  69. - sonata_cache_ssi
  70. - sonata_cache_js_async
  71. - sonata_cache_js_sync
  72. - sonata_cache_apc
  73. - chamilo_installer_flow
  74. - sylius_flow_start
  75. - sylius_flow_display
  76. - sylius_flow_forward
  77. - chamilo_core_user_user_mycourses
  78. - chamilo_page_page_getlatestpages
  79. cache_invalidation:
  80. service: sonata.page.cache.invalidation.simple
  81. recorder: sonata.page.cache.recorder
  82. # classes:
  83. # "Chamilo\PageBundle\Entity\Block": getId
  84. assets:
  85. stylesheets:
  86. - assetic/sonata_front_css.css
  87. javascripts:
  88. - assetic/sonata_front_js.js
  89. page_defaults:
  90. homepage: {decorate: false, enabled: true}
  91. default_template: default
  92. templates:
  93. default:
  94. path: 'ChamiloPageBundle::1column_layout.html.twig'
  95. name: 'default'
  96. containers:
  97. header:
  98. name: Header
  99. content_top:
  100. name: Top content
  101. content:
  102. name: Main content
  103. content_bottom:
  104. name: Bottom content
  105. footer:
  106. name: Footer
  107. matrix:
  108. layout: |
  109. HHHHHHHH
  110. TTTTTTTT
  111. CCCCCCCC
  112. BBBBBBBB
  113. FFFFFFFF
  114. mapping:
  115. H: header
  116. T: content_top
  117. C: content
  118. B: content_bottom
  119. F: footer
  120. 2columns:
  121. path: 'ChamiloPageBundle::2columns_layout.html.twig'
  122. name: '2 columns layout'
  123. containers:
  124. header:
  125. name: Header
  126. content_top:
  127. name: Top content
  128. left_col:
  129. name: Left content
  130. right_col:
  131. name: Right content
  132. content_bottom:
  133. name: Bottom content
  134. footer:
  135. name: Footer
  136. matrix:
  137. layout: |
  138. HHHHHHHH
  139. TTTTTTTT
  140. LLLLRRRR
  141. BBBBBBBB
  142. FFFFFFFF
  143. mapping:
  144. H: header
  145. T: content_top
  146. L: left_col
  147. R: right_col
  148. B: content_bottom
  149. F: footer
  150. caches:
  151. esi:
  152. token: add an unique token here # default is a random value
  153. version: 3 # version 3 is the default on debian wheezy ...
  154. servers:
  155. - '%sonata_page.varnish.command%' # you need to adapt this line to work with your configuration
  156. ssi:
  157. token: add an unique token here # default is a random value
  158. catch_exceptions:
  159. not_found: [404] # render 404 page with "not_found" key (name generated: _page_internal_error_{key})
  160. fatal: [500] # so you can use the same page for different http errors or specify specific page for each error
  161. # Enable Doctrine to map the provided entities
  162. doctrine:
  163. orm:
  164. entity_managers:
  165. default:
  166. mappings:
  167. ChamiloPageBundle: ~
  168. SonataPageBundle: ~