311 Posts in 83 Topics by 149 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 377 Views |
-
Content across different page types

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
-
Re: Content across different page types

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
| 377 Views | ||
|
Page:
1
|
Go to Top |

