silverstripe-framework/templates/Layout/CollectionController.ss
Ingo Schommer 711de868c9 BUGFIX Enabled Link() methods for RecordController and CollectionController, and adjusted url handling to ModelAdmin counterparts to avoid linkage handling problems
BUGFIX Requiring a parentController for RecordController
ENHANCEMENT Custom getViewer() methods to use Page main templates if CollectionController is nested in a ContentController

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63681 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-06 19:29:04 +00:00

21 lines
366 B
Scheme

<div class="typography">
<div id="Content">
<h2>$Title</h2>
$Form
<% if SearchForm %>
<h3><% _t('SEARCH','Search') %></h3>
$SearchForm
<% end_if %>
<% include CollectionController_Results %>
<% if canCurrentUserCreate %>
<h3>Add</h3>
<a href="$Link/add"><% _t('ADDNEWRECORD','Add new record') %></a>
<% end_if %>
</div>
</div>