Jump to:

23001 Posts in 11854 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » css?m=xxx

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: 2429 Views
  • nat.pike
    Avatar
    Community Member
    19 Posts

    css?m=xxx Link to this post

    Hi there, We have our site loaded on a development site which is working fine. When we upload it onto the live site some of the css and js aren't working correctly? I have noticed the css?m= numbers at the end of the css & js files are different from the development site?

    Does this matter? When I change the css on the site nothing happens?

    Could someone please point me in the right direction, thank so much.

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: css?m=xxx Link to this post

    This is a number based on the creation time of the file (useful for caching / refreshing the cache when its updated. The query string does nothing to effect the actual filepath.

    Does this matter? When I change the css on the site nothing happens?

    This is what the ?m value is meant to fix. Try when you make a change to a hard refresh (ctrl + f5 if your on windows).

    To disable the ?m suffix you can set Requirements::set_suffix_requirements(false); in your _config file.

  • nat.pike
    Avatar
    Community Member
    19 Posts

    Re: css?m=xxx Link to this post

    Hi Willr thanks for clarifying that for me.

    The problem we have is we have a jquery photo slide show that works on the development site but not on the live site? And some css isn't working either? I have changed the css and it doesn't change.

    I have tried to disable the suffix but then the site disappears.

    I have done a flush, empty cache and refresh but nothing.

    Does this sound like a caching issue or path issue? or something completely different.

    Thanks

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: css?m=xxx Link to this post

    The problem we have is we have a jquery photo slide show that works on the development site but not on the live site

    Do you get any javascript errors on the live site? Its likely the JS is the issue rather than the CSS. Got a link to the page?

  • nat.pike
    Avatar
    Community Member
    19 Posts

    Re: css?m=xxx Link to this post

    Thanks for this

    The live site is:

    http://awningsystems.addweb.co.nz/

    The development site is:

    http://awningsystems.co.nz/

    The slide show on the home page works on the development site but not the live site?

    Cheers

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