Skip to content

Commit

Permalink
Add documentation on disabling the sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed Dec 28, 2015
1 parent a7fa5da commit 2eff510
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/customizing-templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
<?php
namespace App\Controller;
class ArticlesController extends AppController
{
public function beforeFilter()
{
parent::beforeFilter();
$action = $this->Crud->action();
$action->config('scaffold.disable_sidebar', false);
}
}
Overriding Template Parts
-------------------------

Expand Down

0 comments on commit 2eff510

Please sign in to comment.