Jump to:

23480 Posts in 18951 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » generating a CSS page, possible bug? 404 error Link to this post

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: 669 Views
  • vancouverWill
    Avatar
    Community Member
    121 Posts

    generating a CSS page, possible bug? 404 error Link to this post Link to this post

    I posted in template forum originaly but didn't get any response so thought maybe I should try. Hopefuly this helps someone or gives a possible idea to developers.

    Hi

    I tried to use

    Director::addRules(80, array(
       'sitesettingsmodule/sitesettings.css' => 'SiteSettingsCSS',
    ));


    in _config.php but received a 404 page not found error.

    I was doing this to create a css page so that I can have a dynamic CSS page which I can control from the CMS. For example being able to change the background color from within the CMS.

    i have used this method before to create XML pages, no tag pages, php pages and all to no problem. I had a look in the back end and couldn't see any where this was blocked. Anyone had any experience with this? it seens like it could be a bug, I don't see any security reasons as to why Silverstripe would block it but perhaps they didn't think to include it either.

    Thanks very much for your help.

  • vancouverWill
    Avatar
    Community Member
    121 Posts

    Re: generating a CSS page, possible bug? 404 error Link to this post Link to this post

    have I put this in the wrong place? Is this a bug?

  • vancouverWill
    Avatar
    Community Member
    121 Posts

    Re: generating a CSS page, possible bug? 404 error Link to this post Link to this post

    no ideas anyone? if this isn't built in functionality it really should be.

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