mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Changed $Left placeholder in CMS templates to $Tools, documented it
This commit is contained in:
parent
060e110481
commit
92d513857c
@ -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 %>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user