configuration.rst 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. dashboard:
  52. groups:
  53. # Prototype
  54. id:
  55. label: ~
  56. label_catalogue: ~
  57. items: []
  58. item_adds: []
  59. roles: []
  60. blocks:
  61. type: ~
  62. settings:
  63. # Prototype
  64. id: []
  65. position: right
  66. admin_services:
  67. # Prototype
  68. id:
  69. model_manager: ~
  70. form_contractor: ~
  71. show_builder: ~
  72. list_builder: ~
  73. datagrid_builder: ~
  74. translator: ~
  75. configuration_pool: ~
  76. router: ~
  77. validator: ~
  78. security_handler: ~
  79. label: ~
  80. templates:
  81. user_block: SonataAdminBundle:Core:user_block.html.twig
  82. layout: SonataAdminBundle::standard_layout.html.twig
  83. ajax: SonataAdminBundle::ajax_layout.html.twig
  84. dashboard: SonataAdminBundle:Core:dashboard.html.twig
  85. search: SonataAdminBundle:Core:search.html.twig
  86. list: SonataAdminBundle:CRUD:list.html.twig
  87. show: SonataAdminBundle:CRUD:show.html.twig
  88. edit: SonataAdminBundle:CRUD:edit.html.twig
  89. preview: SonataAdminBundle:CRUD:preview.html.twig
  90. history: SonataAdminBundle:CRUD:history.html.twig
  91. acl: SonataAdminBundle:CRUD:acl.html.twig
  92. history_revision_timestamp: SonataAdminBundle:CRUD:history_revision_timestamp.html.twig
  93. action: SonataAdminBundle:CRUD:action.html.twig
  94. select: SonataAdminBundle:CRUD:list__select.html.twig
  95. list_block: SonataAdminBundle:Block:block_admin_list.html.twig
  96. search_result_block: SonataAdminBundle:Block:block_search_result.html.twig
  97. short_object_description: SonataAdminBundle:Helper:short-object-description.html.twig
  98. delete: SonataAdminBundle:CRUD:delete.html.twig
  99. batch: SonataAdminBundle:CRUD:list__batch.html.twig
  100. batch_confirmation: SonataAdminBundle:CRUD:batch_confirmation.html.twig
  101. inner_list_row: SonataAdminBundle:CRUD:list_inner_row.html.twig
  102. base_list_field: SonataAdminBundle:CRUD:base_list_field.html.twig
  103. pager_links: SonataAdminBundle:Pager:links.html.twig
  104. pager_results: SonataAdminBundle:Pager:results.html.twig
  105. extensions:
  106. # Prototype
  107. id:
  108. admins: []
  109. excludes: []
  110. implements: []
  111. extends: []
  112. instanceof: []
  113. persist_filters: false # set to true to persist filter settings per admin module in the user's session