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.

Template Questions /

Generate static header and footer for inclusion outside of SS


Reply


655 Views

Avatar
weareorganism

Community Member, 14 Posts

1 December 2011 at 11:50am

Hi - I'm trying to sort out the best solution for including the header and footer of a site created in SilverStripe site in a phpBB forum.

A few things I've thought about already are:

1 - Sorting out how to publish static versions of the header and footer into the assets folder. I imagine I would probably want to modify the onAfterWrite of the Page class and use something simliar to the doPublish() function of ErrorPage.php so that every time a page is published I generate the updated static header or footer which can then be included via SSI or other include.

2 - Creating dummy pages and a basic template that only outputs the header or footer that I can then access via cURL.

Are these my best options? Does anyone have any other ideas that might also work?

Thanks,
Peter