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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

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


Go to End


3 Posts   3145 Views

Avatar
Luke

Community Member, 2 Posts

18 June 2008 at 5:09am

Edited: 18/06/2008 5:10am

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?

Avatar
Tim

Community Member, 201 Posts

18 June 2008 at 6:59am

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.

Avatar
Luke

Community Member, 2 Posts

18 June 2008 at 7:01am

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.