소스 검색

Merge pull request #1941 from NoScopie/patch-1

Update search.rst
Thomas 11 년 전
부모
커밋
ea90a63809
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      Resources/doc/reference/search.rst

+ 11 - 0
Resources/doc/reference/search.rst

@@ -23,6 +23,17 @@ The default template values can be configured in the configuration section
                 # other configuration options
                 search:              SonataAdminBundle:Core:search.html.twig
                 search_result_block: SonataAdminBundle:Block:block_search_result.html.twig
+                
+You also need to configure the block in the sonata block config
+
+.. configuration-block::
+
+    .. code-block:: yaml
+
+        sonata_block:
+            blocks:
+                sonata.admin.block.search_result:
+                contexts: [admin]
 
 You can also configure the block template per admin while defining the admin: