digitalroastery / weblounge

Web Content Management System
12 stars 4 forks source link

Think about deleting resources #305

Open myniva opened 10 years ago

myniva commented 10 years ago

Due to the fact, that all resources are nested inside the JCR repository, a delete operation on one resource (node) is potentially very dangerous. If someone, for example deletes the root page of a site ALL content is gone!

Therefore we should think about possible alternatives:

  1. Introduce a kind of "trash": Before you a resource can be deleted from the content repository, it has to be inside the trash. From trash, you can always move a resource back to it's original place.
  2. Disable resource deletion, if there are child-resources. This way, one explicitly has to remove each and every resource.