Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.
SOLVED

Context aware configuration option for a pathfield or pathbrowser.

Avatar

Community Advisor

Is it possible to have a pathfield in context aware configuration? I need to specify a pathfield/browser so that a page path can be selected.

thanks.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 8

Hi @Kamal_Kishor ,

 

We can use the widgetType

@Property(label = "select the path", description = "Enter the poth", property = {
"widgetType=pathbrowser",
"pathbrowserRootPath=/content/myproject"})
String path();

View solution in original post

2 Replies

Avatar

Community Advisor

Hi @Kamal_Kishor ,

CAC would have been using "cq:template" and "sling:resourceType" property .
Can you check the template and core page component where if you tweak something would that help or not?

-Tarun

Avatar

Correct answer by
Level 8

Hi @Kamal_Kishor ,

 

We can use the widgetType

@Property(label = "select the path", description = "Enter the poth", property = {
"widgetType=pathbrowser",
"pathbrowserRootPath=/content/myproject"})
String path();