From 2eff510f1222e3b4dcad6a531cdbbe32125151a7 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 27 Dec 2015 23:33:32 -0500 Subject: [PATCH] Add documentation on disabling the sidebar --- docs/customizing-templates.rst | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docs/customizing-templates.rst b/docs/customizing-templates.rst index 62a05c36..22cbac54 100644 --- a/docs/customizing-templates.rst +++ b/docs/customizing-templates.rst @@ -190,6 +190,30 @@ title for any of the fields by using the ``scaffold.fields`` configuration } } +Disabling the Sidebar +--------------------- + +There are cases where you may wish to disable the sidebar. For instance, you +may be implementing crud-view for just a single table, or have all navigation +in your header. You can disable it using the ``scaffold.disable_sidebar`` +configuration key: + + +.. code-block:: php + + Crud->action(); + $action->config('scaffold.disable_sidebar', false); + } + } + Overriding Template Parts -------------------------