configuration.rst 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. Configuration // Warning: this doc page is not up to date and will be removed soon.
  2. ===================================================================================
  3. .. note::
  4. This page will be removed soon, as it's content is being improved and moved to
  5. other pages of the documentation. Please refer to each section's documentation for up-to-date
  6. information on SonataAdminBundle configuration options.
  7. Configuration
  8. -------------
  9. Configuration options
  10. * ``security``
  11. * ``handler``
  12. * ``sonata.admin.security.handler.role`` : The default value
  13. * ``sonata.admin.security.handler.acl`` : Use this service if you want ACL
  14. Full Configuration Options
  15. --------------------------
  16. .. configuration-block::
  17. .. code-block:: yaml
  18. # Default configuration for "SonataAdminBundle"
  19. sonata_admin:
  20. security:
  21. handler: sonata.admin.security.handler.noop
  22. information:
  23. # Prototype
  24. id: []
  25. admin_permissions:
  26. # Defaults:
  27. - CREATE
  28. - LIST
  29. - DELETE
  30. - UNDELETE
  31. - EXPORT
  32. - OPERATOR
  33. - MASTER
  34. object_permissions:
  35. # Defaults:
  36. - VIEW
  37. - EDIT
  38. - DELETE
  39. - UNDELETE
  40. - OPERATOR
  41. - MASTER
  42. - OWNER
  43. acl_user_manager: ~ # Name of the user manager service used to retrieve ACL users
  44. title: Sonata Admin
  45. title_logo: bundles/sonataadmin/logo_title.png
  46. options:
  47. html5_validate: true # use html5 validation
  48. confirm_exit: true # enabled confirmation when quitting with unsaved changes
  49. use_select2: true # enable select2
  50. pager_links: ~ # pager max links to display
  51. dropdown_number_groups_per_colums: 2 # max items per column in dropdown menu (add button in top nav)
  52. dashboard:
  53. groups:
  54. # Prototype
  55. id:
  56. label: ~
  57. label_catalogue: ~
  58. items: []
  59. item_adds: []
  60. roles: []
  61. blocks:
  62. type: ~
  63. settings:
  64. # Prototype
  65. id: []
  66. position: right
  67. admin_services:
  68. # Prototype
  69. id:
  70. model_manager: ~
  71. form_contractor: ~
  72. show_builder: ~
  73. list_builder: ~
  74. datagrid_builder: ~
  75. translator: ~
  76. configuration_pool: ~
  77. router: ~
  78. validator: ~
  79. security_handler: ~
  80. label: ~
  81. templates:
  82. user_block: SonataAdminBundle:Core:user_block.html.twig
  83. add_block: SonataAdminBundle:Core:add_block.html.twig
  84. layout: SonataAdminBundle::standard_layout.html.twig
  85. ajax: SonataAdminBundle::ajax_layout.html.twig
  86. dashboard: SonataAdminBundle:Core:dashboard.html.twig
  87. search: SonataAdminBundle:Core:search.html.twig
  88. list: SonataAdminBundle:CRUD:list.html.twig
  89. show: SonataAdminBundle:CRUD:show.html.twig
  90. edit: SonataAdminBundle:CRUD:edit.html.twig
  91. preview: SonataAdminBundle:CRUD:preview.html.twig
  92. history: SonataAdminBundle:CRUD:history.html.twig
  93. acl: SonataAdminBundle:CRUD:acl.html.twig
  94. history_revision_timestamp: SonataAdminBundle:CRUD:history_revision_timestamp.html.twig
  95. action: SonataAdminBundle:CRUD:action.html.twig
  96. select: SonataAdminBundle:CRUD:list__select.html.twig
  97. list_block: SonataAdminBundle:Block:block_admin_list.html.twig
  98. search_result_block: SonataAdminBundle:Block:block_search_result.html.twig
  99. short_object_description: SonataAdminBundle:Helper:short-object-description.html.twig
  100. delete: SonataAdminBundle:CRUD:delete.html.twig
  101. batch: SonataAdminBundle:CRUD:list__batch.html.twig
  102. batch_confirmation: SonataAdminBundle:CRUD:batch_confirmation.html.twig
  103. inner_list_row: SonataAdminBundle:CRUD:list_inner_row.html.twig
  104. base_list_field: SonataAdminBundle:CRUD:base_list_field.html.twig
  105. pager_links: SonataAdminBundle:Pager:links.html.twig
  106. pager_results: SonataAdminBundle:Pager:results.html.twig
  107. extensions:
  108. # Prototype
  109. id:
  110. admins: []
  111. excludes: []
  112. implements: []
  113. extends: []
  114. instanceof: []
  115. persist_filters: false # set to true to persist filter settings per admin module in the user's session