silverstrap 

silverstrap Commit Details

Date:2013-06-13 16:54:27 (6 years 6 days ago)
Author:Nicola Fontana
Branch:bootstrap2, dev, master, master-1.0, ss3
Commit:599e7e7c5fd8f67948834a8ffa6effd3feb6c591
Parents: 22c486871851d5cecc1ba8c75c549b1cb0a70d17
Message:Update to latest silverstripe-autotoc

Clearly separated content with autotoc from standard content by using
two different templates: Content.ss and AutotocContent.ss. Using
$AugmentedContent in the latter, as required by the lastest improvement
to the Autotoc module.
Changes:
Atemplates/Includes/AutotocContent.ss (full)
Mtemplates/Includes/Content.ss (1 diff)
Mtemplates/Layout/Page.ss (1 diff)

File differences

templates/Includes/AutotocContent.ss
1
2
3
4
5
6
7
8
9
10
11
12
13
<aside class="span3">
<ul class="nav nav-list affix">
<li class="nav-header"><%t Silverstrap.TOC %></li>
<% include Autotoc %>
</ul>
</aside>
<div class="span9">
<main id="content" role="main">
<div class="page-header"><h1>$Title</h1></div>
$AugmentedContent
</main>
$Form
</div>
templates/Includes/Content.ss
1
2
3
4
5
6
7
8
9
1
102
113
124
135
146
157
16
<div class="row"><% if $Autotoc %>
<aside class="span3">
<ul class="nav nav-list affix">
<li class="nav-header"><%t Silverstrap.TOC %></li>
<% include Autotoc %>
</ul>
</aside>
<div class="span9"><% else %>
<div class="span12"><% end_if %>
<div class="span12">
<main id="content" role="main"><% if $Title %>
<div class="page-header"><h1>$Title</h1></div><% end_if %>
$Content
</main>
$Form
</div>
</div>
templates/Layout/Page.ss
11
2
2
3
4
5
36
<div class="container">
<% include Content %>
<div class="row"><% if $Autotoc %>
<% include AutotocContent %><% else %>
<% include Content %><% end_if %>
</div>
</div>

Archive Download the corresponding diff file