MINOR Changed $Left placeholder in CMS templates to $Tools, documented it

This commit is contained in:
Ingo Schommer 2012-02-14 21:53:23 +01:00
parent 060e110481
commit 92d513857c
2 changed files with 10 additions and 2 deletions

View File

@ -24,9 +24,9 @@
</div>
</div>
<% if Left %>
<% if Tools %>
<div class="cms-content-tools west cms-panel cms-panel-layout collapsed" id="cms-content-tools" data-expandOnClick="true" data-layout="{type: 'border'}">
$Left
$Tools
</div>
<% end_if %>

View File

@ -72,6 +72,14 @@ Depending on the complexity of your layout, you'll also need to overload the
a tabbed form which only scrolls the main tab areas, while keeping the buttons at the bottom of the frame.
This requires manual assignment of the template to your form instance, see `[api:CMSMain->getEditForm()]` for details.
Often its useful to have a "tools" panel in between the menu and your content,
usually occupied by a search form or navigational helper.
In this case, you can either overload the template as described above,
or use the special `$Tools` placeholder on `LeftAndMain->getEditForm()`.
See `CMSPageEditController->getEditForm()` for sample usage.
As the base template is aware of this placeholder, it saves you from
overloading a complex template.
## Layout and Panels
The CMS markup is structured into "panels", which are the base units containing