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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Migrating a Site to Silverstripe /

What you need to know when migrating your existing site to SilverStripe.

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

Content across different page types


Go to End


2 Posts   2313 Views

Avatar
johnp

Community Member, 8 Posts

1 August 2012 at 6:44am

Hi Guys,

I have included a footer field in a HomePage page type. I require the information from this field to be included in the footer of all the page types, ie Page.ss, Article.ss etc. to ensure the user doesnt have to copy and paste the information. I know this is possible but I have forgotten how, any ideas?? I just need pointing in the right direction..

Cheers in advance

Avatar
martimiz

Forum Moderator, 1391 Posts

13 September 2012 at 1:34am

I think the best way to add general footer content is by using the SiteConfig (the general site settings). Say if you add a FooterText field to SiteConfig, you can then access that from your Page template using $SiteConfig.FooterText

This is for version 3.0: http://doc.silverstripe.org/framework/en/reference/siteconfig