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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Editing the footer


Reply

5 Posts   810 Views

Avatar
evsoul

18 February 2010 at 9:50am Community Member, 36 Posts

Hi all, pretty basic question here.

when you put something like

<div id="footer">
<% footer %>
</div>

Where in the CMS admin panel do you control that content? And can you have something different for it on each page on the site?
Or does that require further customizing?

Thanks!

Avatar
Juanitou

18 February 2010 at 10:40am (Last edited: 18 February 2010 10:41am), Community Member, 323 Posts

Hi!

When you put something like that, you’re lucky if the site does not break… ;)

Some reading: http://doc.silverstripe.org/doku.php?id=templates

There has been a lot of discussion lately around editing footers and the such in the CMS, you’ll find it easily by searching the forum.

Regards,
Juan

Avatar
evsoul

18 February 2010 at 10:44am Community Member, 36 Posts

Oh I haven't put that inside the footer div I've just noticed some templates containing that tag inside the div and was curious about it.
If I recall correctly the black candy default theme uses it.

Actually after writing this bit, I went and downloaded the black candy theme to check and it's actually

<% include Footer %>

Is this not supported?

Avatar
Juanitou

18 February 2010 at 11:25am Community Member, 323 Posts

Sure it’s supported, as long as you have a file called Footer.ss in your Includes folder. All this is explained in the page I gave before.

Good reading,
Juan

Avatar
evsoul

18 February 2010 at 11:27am Community Member, 36 Posts

heh, maybe I should use the resource you offered. Haha.. I'll read up on that. Thanks a lot for helping a most likely redundant topic!