Context aware configuration option for a pathfield or pathbrowser. | Community
Skip to main content
Kamal_Kishor
New Participant
February 4, 2025
Solved

Context aware configuration option for a pathfield or pathbrowser.

  • February 4, 2025
  • 2 replies
  • 519 views

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.

Best answer by narendiran_ravi

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();

2 replies

narendiran_ravi
narendiran_raviAccepted solution
New Participant
February 4, 2025

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();
TarunKumar
New Participant
February 4, 2025

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