0
votes

AEM/CQ5 (5.6.1) appears to have a deficiency in how content validation works in the out-of-the-box product.

Though component dialogs have a mechanism for validation, the validators only get executed when the dialog is open. The problem is that a component can be added to a page, and without opening the component's dialog, the page can be activated with the unconfigured component. Even worse, it's possible to activate a page without completing mandatory configuration in its page properties dialog.

I have previously dealt with the latter by creating a replication preprocessor (com.day.cq.replication.Preprocessor) which validated the expected page properties. This is suboptimal, since it has its own validation logic, which may diverge from the dialog validators. It also does nothing to validate components on the page.

Is there any way to leverage the validation rules in component dialogs for validating content prior to activation? If not, do you have any other suggestions for improving pre-activation content (page and component properties) validation?

1

1 Answers

0
votes

One option can be to define a flag in component dialog which you can use to show visible notification text to configure the component and update it once it is configured.

It actually is more of a knowledge problem than a product issue.

Aem can be configured for non-technical authors who can add/modify content on author instance and then can submit it for Review via workflow. The reviewer can then verify and replicate content if found to be fine.