Jump to:

5542 Posts in 1739 Topics by 1225 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Prevent date of published pages from changing

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

Page: 1
Go to End
Author Topic: 295 Views
  • vodoomoth
    Community Member
    22 Posts

    Prevent date of published pages from changing Link to this post

    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.

  • jbridson
    Community Member
    7 Posts

    Re: Prevent date of published pages from changing Link to this post

    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?

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.