Jump to:

3444 Posts in 1030 Topics by 871 members

Template Questions

SilverStripe Forums » Template Questions » Generate static header and footer for inclusion outside of SS

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

Page: 1
Go to End
Author Topic: 558 Views
  • weareorganism
    Avatar
    Community Member
    14 Posts

    Generate static header and footer for inclusion outside of SS Link to this post

    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

    558 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.