Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions /

upadting ss files


Reply


5 Posts   1065 Views

Avatar
servalman

Community Member, 211 Posts

21 September 2009 at 8:23pm

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

Avatar
Willr

Forum Moderator, 5513 Posts

21 September 2009 at 9:58pm

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.

Avatar
servalman

Community Member, 211 Posts

21 September 2009 at 10:16pm

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

Avatar
banal

Community Member, 901 Posts

21 September 2009 at 11:30pm

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

Avatar
biapar

Forum Moderator, 435 Posts

22 October 2009 at 2:34am

good tips