Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

How to do tree activation in AEM as a Cloud Service?

Avatar

Level 2

I want to do a tree activation of pages under a certain /content path.

 

But one requirement is that I want to be able to exclude pages that has a certain text in the page name and publish all the remaining pages. For example, if a page's name contains the text 'archive', i don't want to publish those. 

 

Example (node names or page names):

archive1 -> Skip this page

test-archive -> Skip this page

archive -> Skip this page

test -> Publish this page

 

Do we need to customize the Publish content tree workflow to achieve it? Also, is this achievable in AEM as a Cloud Service?

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @cprogramkarthick 

 

ACS AEM commons has a utility to create packages based on a query

https://adobe-consulting-services.github.io/acs-aem-commons/features/packagers/query-packager/index....

 

We can create package on author and then replicate the package to publish.


Aanchal Sikka

View solution in original post

5 Replies

Avatar

Community Advisor

Hi,

You can try building a package using JAVA API where you can exclude pages based on search and then replicate the package.



Arun Patidar

Avatar

Correct answer by
Community Advisor

Hello @cprogramkarthick 

 

ACS AEM commons has a utility to create packages based on a query

https://adobe-consulting-services.github.io/acs-aem-commons/features/packagers/query-packager/index....

 

We can create package on author and then replicate the package to publish.


Aanchal Sikka

Avatar

Community Advisor

Hi @cprogramkarthick  You can leverage the write up where the custom logic is created based on the path under which the pages needs to be published.

As the  AssetReferenceSearch is also used within the logic explained you would be able to repliacted the referenced assets as well. In addition to that within the servlet you can add the logic to skip the pages based on the regex created.

Reference - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/bulk-publish-aem-community...

 

Hope this helps!

Thanks

Avatar

Administrator

@cprogramkarthick Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni

Avatar

Level 2

Thanks to all of you who provided answers. Each of the answer helped me to learn something new, really appreciate it for taking the time and effort to reply