Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Themes /

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

[SOLVED]Bootstrap theme - footer include is not included


Reply


3 Posts   824 Views

Avatar
Cgull

Community Member, 23 Posts

19 January 2013 at 1:25am

Hello,

I have downloaded the Twitter Bootstrap theme from the themes extensions.

I have changed the page.ss to include a Footer.ss I have created, but the footer is not being included.
The Header.ss is included, why isn't the Footer?

My code:
Page.ss (adding only the part that I have changed)

<div id="page">
   <% include Header %>
<div class="container">

$Layout

<hr>
</div> <!-- /container -->
   
   <% include Footer %>
</div><!-- /page -->

Footer.ss

<footer id="footer">
<div class="left main"><p>&copy; The Clarens Community Policing $Now.Year | <% include Navigation %></p></div>
<div class="right main"><p>Web developer: <a href="http://www.sigalz.co.za" target="_blank">Sigal Zahavi</a> | Silverstripe Bootstrap Theme by <a href="/">Visit Toowoomba</a></p></div>
</footer>

Avatar
copernican

Community Member, 189 Posts

19 January 2013 at 2:20am

Did you do a ?flush=1 ? I would also check your spelling. ie if your include is Footer, make sure your filename is Footer and not footer (lowercase f).

Avatar
Cgull

Community Member, 23 Posts

19 January 2013 at 3:16am

Thank you IOTI,

Although I did do flush before, it didn't work, tried it again, this time, the footer is there.

Maybe I did the flush on the wrong time, with a different change that I've made, do not know anymore :)