Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Static WebSite to Silverstripe

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: 1157 Views
  • invalidsyntax
    Avatar
    Community Member
    1 Post

    Static WebSite to Silverstripe Link to this post

    Can I take my static site (css, images, layout) and make it into SilverStripe CMS?

    Do I place my existing css, xhtml etc into the template folder?

    Thanks for your help

  • Bruce B
    Avatar
    Community Member
    145 Posts

    Re: Static WebSite to Silverstripe Link to this post

    The short answer is 'Yes, you can move your existing site to SilverStripe.'

    I'm in the middle of doing just that. A few notes from my experiences so far:

    Do the first couple of tutorials - they will give you a good feel for how it all works.

    You will be building everything inside the 'mysite' folder, replacing its contents with your (modified) current files.

    I moved out my text formatting CSS to a separate stylesheet called typography.css and added a typography class to the content wrapper div in my template. This means the CMS admin page can reference the styles. Have a look at the typography.css in the tutorial and the tutorial page.ss template.

    As a first pass, you can just insert $content to replace your current text to create basic templates.

    The next stage is reworking the menus so they are generated automatically from the structure rather than hand-built. That will be fun but the forums have lots of examples, eg how to feed data into existing pop-up menus.

    Then you start writing the list of all the new possibilities that never existed while you had a static site!

    cheers
    bruce

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