瀏覽代碼

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: