OJs
OJs

Reputation: 117

Wastebasket/Trash bin at Optimizely Multisite

I am wondering if someone knows how to create one Wastebasket/Trash bin per. site on Optimizely CMS? Right now we have a shared bin, and editors on different sites can delete content on another site.

Upvotes: 1

Views: 102

Answers (1)

Ted Nyberg
Ted Nyberg

Reputation: 7401

AFAIK there's no such option out of the box, but you could hook into the Moving event to see if ContentReference.WasteBasket is the target, and if so move to a different site-specific "waste basket".

However, you would have to take care of additional use-cases yourself, as the page wouldn't technically be in the waste basket.

For example, filtering out "deleted" pages in S&N queries wouldn't work as expected.

Edit: if you want to prevent deletions from the wastebasket, you could perhaps implement custom authorization in the Deleting event.

Upvotes: 0

Related Questions