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

Comparing draft and live content


Go to End


3 Posts   1942 Views

Avatar
dynamite

Community Member, 66 Posts

18 July 2009 at 9:56am

Hello! How can I specifically load the "draft"/stage version of a page while inside a controller? I wold like to be able to compare the draft content with the live content, and if it is different, display a message to admin that "this page needs the content reviewed"

Thanks!

Avatar
dynamite

Community Member, 66 Posts

23 July 2009 at 12:11am

*bump*

Anybody? I am still stumped on this one... Thanks!

Avatar
dynamite

Community Member, 66 Posts

1 August 2009 at 2:47am

Just in case someone else runs in to this, my work-around was to create two hidden iframes, one that loads the draft and another that loads the published page and comparing the contents of the iframe. Not very pretty, but it works!

Now I just need to find a way to allow non-CMS users access to the draft content...