Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Exclude a component from page publication

Avatar

Level 4

Hi,

do you know if it's possible for an Author to exclude a component from page publication? The use case is the following: an author is working on a page, but he has not yet finished the editing of a certain component, while the rest of the page is ready to be published. In this case, the author wants to mark the unfinished component so when the page is published, that component is not published.

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Administrator

There is not OOTB option available for this but there are many ways to achieve this:

1. [workaround] Removing the value for resourceType property of that component from JCR should work

2. Good solution would be, to do it at component development phase. Where we can provide a Checkbox and based on it we can hide the component using CSS/JS code.

~kautuk



Kautuk Sahni

View solution in original post

1 Reply

Avatar

Correct answer by
Administrator

There is not OOTB option available for this but there are many ways to achieve this:

1. [workaround] Removing the value for resourceType property of that component from JCR should work

2. Good solution would be, to do it at component development phase. Where we can provide a Checkbox and based on it we can hide the component using CSS/JS code.

~kautuk



Kautuk Sahni