Jump to:

23379 Posts in 18298 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » SilverStripe 3 - no cms but menu and siteconfig

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 725 Views
  • Andre
    Avatar
    Community Member
    126 Posts

    SilverStripe 3 - no cms but menu and siteconfig Link to this post

    Hi,

    is there a general way on how to build menues, 404 Pages and use siteconfig on Silverstripe 3 when only usin the Framework Package, without the cms module?

    How can I check, if a Route exists or not?

    THe Installation sets up the RootURLController. Will this controller be passed, also if a Route is not defined, and how can I check, if a Route is not defined, to redirect to a generic 404 Error Page?

    regards

    Andre

  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: SilverStripe 3 - no cms but menu and siteconfig Link to this post

    With 3.0 the cms is now an optional module so yes, you can use it on it's own

    If you want to setup routes you need to use Director::addRules() (although this will change in 3.0 stable and move to static YAML definitions) to take all your routes and point them to controllers.

    The base controller class (Controller) and RequestHandler handle detecting 404 errors so I would investigate those and pick out the bits you want to customize in your own base custom controller for the application..

    Here's an example that creates the default pages - https://github.com/silverstripe/silverstripe-cms/blob/master/code/model/SiteTree.php#L1311

  • Eugene
    Avatar
    Community Member
    2 Posts

    Re: SilverStripe 3 - no cms but menu and siteconfig Link to this post

    I am also interested in using SiteConfig but in the framework only version. As SiteConfig is included in the cms version only could you please advise me if/how I can use this without the cms? I have been extending the framework admin to provide a simple system. Using the cms seems overkill for my project.

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