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

Default directory page


Go to End


4 Posts   1317 Views

Avatar
KatB

Community Member, 105 Posts

11 February 2008 at 5:25pm

ARgh! Panic!

How do I point the server to a static page for the default directory page instead of the CMS?

I am converting a static site and until I am ready to switch completely over, I am running the static site alongside. Unfortunately, now home is pointing to the CMS and NOT my original static page. How on earth do I get it back?

Anyone, please, help??

Avatar
SilverRay

Community Member, 167 Posts

11 February 2008 at 6:35pm

You could put the CMS in a subdirectory... so the static home page would be in www.yourserver.com and the cms could then live in www.yourserver.com/somedir

Helps?

Avatar
KatB

Community Member, 105 Posts

12 February 2008 at 1:00pm

HAHA!

Just grab the static content from the original home page and shove that into the HomePage.ss template, removing any dynamic content references, and Bob's your uncle!

Avatar
SilverRay

Community Member, 167 Posts

12 February 2008 at 1:12pm

Yeah, you wouldn't believe me perhaps, but this morning I just thought of posting your solution, but didn't get to it yet. Glad you've worked it out!