AEM restrict the pathbrowser content only option | Community
Skip to main content
rsl_lucky
Level 4
Sep 23, 2020 3:05 PM UTC
Solved

AEM restrict the pathbrowser content only option

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.
poojac_2204Accepted solution
Level 4
Sep 23, 2020 6:57 PM UTC

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

6 replies

Nikhil-Kumar
New Participant
Sep 24, 2020 10:01 AM UTC

@rsl_lucky - 

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

Translate
sail83812260
New Participant
Sep 24, 2020 10:13 AM UTC

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.

Translate
arunpatidar
New Participant
Sep 24, 2020 9:26 AM UTC

Hi,

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

 

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

 

Translate
Arun Patidar
ChitraMadan
New Participant
Sep 23, 2020 7:06 PM UTC

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.

 

Translate
rsl_lucky
rsl_luckyAuthor
Level 4
Sep 24, 2020 2:47 AM UTC

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.

Translate
poojac_2204Accepted solution
Level 4
Sep 23, 2020 6:57 PM UTC

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

Translate