Configure a tag path selector in Scheduler service in AEM6.5 | Community
Skip to main content
Level 6
October 12, 2023
Solved

Configure a tag path selector in Scheduler service in AEM6.5

  • October 12, 2023
  • 2 replies
  • 1368 views

Is it possible to configure a tag path selector in Scheduler service in AEM6.5?

 

I would like to configure a tag location that I then use in the Scheduler:

Example:

/content/cq:tags/blog
/content/cq:tags/zkb/content/blog

I tried to configure it like this:

@AttributeDefinition(name = "tagPath", description = "Enter content paths for tags used in Blog Articles.")
String[] getTagPaths() default {"/content/cq:tags/blog", "/content/cq:tags/zkb/content/blog"};

@Activate
protected void activate(final Config config) {
tagPaths = config.getTagPaths();
}

The result is that I by default get an String array with one element with value /content/cq:tags/blog, /content/cq:tags/zkb/content/blog


I can go in /system/console/configMgr and manually add tagPaths but I am not able to configure it like that programatically.

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

arunpatidar
Community Advisor
Community Advisor
October 12, 2023

Hi @anasustic 
Could you please share more detail about the use case?

Arun Patidar
anasusticAuthor
Level 6
October 12, 2023

Thank you. I appologise for the lack of explanation @arunpatidar and @aanchal-sikka which I updated.

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
October 12, 2023
aanchal-sikka
Community Advisor
Community Advisor
October 12, 2023

Hello @anasustic 

 

Need some help understanding how tag paths is related to Scheduler.

 

Aanchal Sikka