Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Need to grab a Page.ss from other place than my theme folder

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 2296 Views
  • Luke
    Avatar
    Community Member
    2 Posts

    Need to grab a Page.ss from other place than my theme folder Link to this post

    Is it possible to store the Page.ss template in a database or point it to an http:// location? I have a Zend Framework application that renders out the correct Page.ss temlpate for silverstripe to use... but I don't know how I can get silverstripe to use it. Does this make sense?

  • Tim
    Avatar
    Core Development Team
    201 Posts

    Re: Need to grab a Page.ss from other place than my theme folder Link to this post

    Probably the best way to do this would be to get your application to write the .ss file to the appropriate location within the current SilverStripe file structure, as apposed to trying to modify SilverStripe to "pickup" that file from another location.

  • Luke
    Avatar
    Community Member
    2 Posts

    Re: Need to grab a Page.ss from other place than my theme folder Link to this post

    Yea that is what I decided to do. I have a controller that (if accessed with the right key) will check to see if changes have been made to the layout, and if so, updates Page.ss (the location of which is saved in its config file) with the new layout.

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