Jump to:

3445 Posts in 1031 Topics by 872 members

Template Questions

SilverStripe Forums » Template Questions » Comparing draft and live content

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

Page: 1
Go to End
Author Topic: 1340 Views
  • dynamite
    Avatar
    Community Member
    66 Posts

    Comparing draft and live content Link to this post

    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!

  • dynamite
    Avatar
    Community Member
    66 Posts

    Re: Comparing draft and live content Link to this post

    *bump*

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

  • dynamite
    Avatar
    Community Member
    66 Posts

    Re: Comparing draft and live content Link to this post

    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...

    1340 Views
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.