Discard content changes / restore last published "Version" | Community
Skip to main content
April 19, 2018
Solved

Discard content changes / restore last published "Version"

  • April 19, 2018
  • 6 replies
  • 4587 views

Hi,

is there any way I can discard changes on a page (I deleted some content) if I haven't even published it yet?

I know that you can create versions but honestly I'd expect to have a option to discard unpublished changes and/or go back to at least the previousely published state of a page WITHOUT manually creating a Version.

I'm new to AEM so maybe I just haven't found it or the option is disabled for me (if so I need to know where and how to acitvate it). I come from Open Text which has a simple "discard changes" option after editing any content > that's state of the art I'd guess!?

Pls help! Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

Hi,

When you activate a page, AEM creates a version of that page by default. So you can just restore the latest available version. If you haven't publish yet, there might be no version (if you haven't created one manually).

kind regards,

Jörg

6 replies

smacdonald2008
Level 10
April 19, 2018

AEM does not support that. As you stated - you can use versions. See Working with Page Versions.

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
April 19, 2018

Hi,

When you activate a page, AEM creates a version of that page by default. So you can just restore the latest available version. If you haven't publish yet, there might be no version (if you haven't created one manually).

kind regards,

Jörg

edubey
Level 10
April 20, 2018

That option is available in the context  Jörg  has explained

April 20, 2018

Hi,

thanks to everyone.

@Jörg:Ok I tested that and YES it does make a version if I publish a page but we're setting up a new site and our contractor who has done the initial content has created most of the pages and also published them but there's no Version I can go back to. Timeline shows the different publihing and creation dates for eacht of these pages but I can't go back.

Also I don't know if that will work for different Users on the same page? For example when I create a version, can another person jump back to this version later or can you only I do that on my versions? I don't think so but I need to ask.

I really thought AEM has more

joerghoh
Adobe Employee
Adobe Employee
April 20, 2018

If the contractor used tree activation there is an option not to create versions. Which is very unfortunate and also not best practices (that's one of the reasons I avoid this option in the Tree Activation, unless it is really required).

And page versions are global and are not tied to any specific user; user A can create a version and user B can restore the page to that version.

Jörg

April 20, 2018

Thanks alot!

I think they did many other stuff that isn't best practice or even good practice.

We're wuite unhappy with this situation at the moment but we have to deal with it.

But it would help us a lot if we can get some offical statements for some of the things we suspect aren't "done right" ...

Can I just open another question here to get some Informations or is there a better way to do this?

Thanks!