Jump to:

325 Posts in 200 Topics by 157 members

Migrating a Site to Silverstripe

SilverStripe Forums » Migrating a Site to Silverstripe » Content across different page types

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

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

Page: 1
Go to End
Author Topic: 964 Views
  • johnp
    Avatar
    Community Member
    8 Posts

    Content across different page types Link to this post

    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

  • martimiz
    Avatar
    Forum Moderator
    1068 Posts

    Re: Content across different page types Link to this post

    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

    964 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.