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.

Customising the CMS /

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

Prevent date of published pages from changing


Go to End


2 Posts   1251 Views

Avatar
Voodoo Priest

Community Member, 32 Posts

2 January 2013 at 11:37am

Hi all,
I have noticed that whenever there is a change in the backend that I've made on a page that has been published for days, the date that shows up on the frontend is the date that the change was made, even though the change hasn't been published.

I've noticed this specifically for blog entries using the Blog module but maybe the issue is related to the CMS.

If I haven't clicked the Save & Publish button, I'm expecting my website to remain immune to any changes I've made in the backend as the changes might be temporary.

Does anyone know how I can prevent the modification date from showing up when I use $Date in my BlogEntry.ss template?

Thank you.

Avatar
jbridson

Community Member, 7 Posts

9 January 2013 at 9:47am

When you are logged in as admin and you view the site you could be potentially viewing the staged (draft) version of your site. To check whether you are, add ?stage=live to the end of your url. Does the modified date still appear?