Expand my Community achievements bar.

SOLVED

Discard content changes / restore last published "Version"

Avatar

Level 1

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

6 Replies

Avatar

Level 10

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

Avatar

Correct answer by
Employee Advisor

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

Avatar

Level 10

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

Avatar

Level 1

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

Avatar

Employee Advisor

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

Avatar

Level 1

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!