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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

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

upadting ss files


Go to End


5 Posts   1530 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, 5523 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
bummzack

Community Member, 904 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