How to do tree activation in AEM as a Cloud Service? | Community
Skip to main content
Level 2
November 5, 2023
Solved

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

  • November 5, 2023
  • 5 replies
  • 1765 views

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?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by aanchal-sikka

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.html

 

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

5 replies

arunpatidar
Community Advisor
Community Advisor
November 5, 2023

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
aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
November 6, 2023

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.html

 

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

Aanchal Sikka
ShaileshBassi
Community Advisor
Community Advisor
November 6, 2023

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-blog-seeding/m-p/418714

 

Hope this helps!

Thanks

kautuk_sahni
Community Manager
Community Manager
November 6, 2023

@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
Level 2
November 6, 2023

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 🙂