Jump to:

3439 Posts in 1028 Topics by 869 members

Template Questions

SilverStripe Forums » Template Questions » upadting ss files

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

Page: 1
Go to End
Author Topic: 1018 Views
  • servalman
    Avatar
    Community Member
    211 Posts

    upadting ss files Link to this post

    Hi
    I'm currently doing the second tutorial (extending site)
    I'm doing the news part & my problem is the following :

    I have modified the "ArticlePage.ss" file :

    instead of :

    <div class="newsDetails">
    Posted on $Date.Nice by $Author
    </div>

    I have written "Publié le" in french so it look like this

    <div class="newsDetails">
    Publié le $Date.Nice by $Author
    </div>

    My probléme is that the file is not updating tough I did use the enviroment builder to do it

    What am I doing wrong

    Thank you

    Thomas

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: upadting ss files Link to this post

    Have you flushed the cache by visiting the page with a ?flush=1? yoursite.com/?flush=1. You can also try empty your browser cache (ctrl + f5 on firefox). Also if its not changing after using ?flush=1 then make sure you are editing the right file.

  • servalman
    Avatar
    Community Member
    211 Posts

    Re: upadting ss files Link to this post

    Thanks for your answer

    I tried waht you said and it kind of worked but in a weird way :

    If I do www.mysite.com/?flush=1 it does not work but if do www.mysite.com/newssection/?flush=1 it does.

    Is it normal and if it is can you expalin me why I have to put the url of the site tree where the changes occured (hope I'm clear)

    Thank

    Thomas

  • banal
    Avatar
    Community Member
    901 Posts

    Re: upadting ss files Link to this post

    By appending ?flush=1 to a SilverStripe URL, you only delete the cache of that page, not the whole cache. So if newssection is the page where you altered the .ss file, the behavior is normal.
    To flush the whole cache, run /dev/build?flush=all

  • biapar
    Avatar
    Forum Moderator
    435 Posts

    Re: upadting ss files Link to this post

    good tips

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