Skip to content

Commit

Permalink
MINOR Changed $Left placeholder in CMS templates to $Tools, documente…
Browse files Browse the repository at this point in the history
…d it
  • Loading branch information
chillu committed Feb 15, 2012
1 parent 060e110 commit 92d5138
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/templates/Includes/LeftAndMain_EditForm.ss
Expand Up @@ -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 %>

Expand Down
8 changes: 8 additions & 0 deletions docs/en/reference/cms-architecture.md
Expand Up @@ -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
Expand Down

0 comments on commit 92d5138

Please sign in to comment.