AEM restrict the pathbrowser content only option | Community
Skip to main content
rsl_lucky
Level 4
September 23, 2020
Solved

AEM restrict the pathbrowser content only option

  • September 23, 2020
  • 4 replies
  • 3125 views

Hi All,

 

Have a requirement where a workflow notification user selects task and completes it by providing path in 

custom dialog which was provided.

 

 

Needs to Restrict other folder path selection in pathbrowser. Have used 'rootpath' property on pathbrowser to restrict it is to some extent working but using content only option mentioned in screenshot we can able to select other folder paths using it.

 

 

How to resolve this use case by restricting users to select folder from certain hierarchy path only.

 

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 poojac_2204

You can try acs-commons contextbrowser field. Here are the details.

4 replies

poojac_2204Accepted solution
Level 4
September 23, 2020

You can try acs-commons contextbrowser field. Here are the details.

ChitraMadan
Community Advisor
Community Advisor
September 23, 2020

Hi @rsl_lucky ,

 

I am not sure, if I have understood your question correctly, but with rootPath property, you can restrict to any level in content.

 

rootPath = "/content/a/b/c/d"

Can you please give an example of what exactly you are trying to achieve.

 

rsl_lucky
rsl_luckyAuthor
Level 4
September 24, 2020

Hi ChitraMadan,

 

Yes rootPath is serving the purpose to some extent but using ContentOnly option shown in screenshot is from where user can go & select any other folder path in AEM. This has to be restricted, Please let me know if you got the problem.

 

Thanks.

arunpatidar
Community Advisor
Community Advisor
September 24, 2020

Hi,

OOTB you can't. It only allows one root path.

 

But you can write javascript validation top of that with helptext hint.

 

Arun Patidar
Nikhil-Kumar
Community Advisor
Community Advisor
September 24, 2020

@rsl_lucky - 

You can specify the exact path of the folder in rootpath to restrict the pathfield to a specific folder .

sail83812260
September 24, 2020

Hi @nikhil-kumar, Yes rootPath is serving the purpose to some extent but not completly. Using ContentOnly option shown in screenshot is where user can go & select any other folder path in AEM. This has to be restricted, Hope you got the issue.