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.

Migrating a Site to Silverstripe /

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

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

Content across different page types


Reply


2 Posts   1087 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, 1132 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