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

Context aware configuration option for a pathfield or pathbrowser.

  • February 4, 2025
  • 2 replies
  • 520 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.

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

TarunKumar
Community Advisor
Community Advisor
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

narendiran_ravi
narendiran_raviAccepted solution
Level 6
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();