AEM restrict the pathbrowser content only option

Avatar

Avatar

rsl_lucky

Avatar

rsl_lucky

rsl_lucky

23-09-2020

Hi All,

 

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

custom dialog which was provided.

 

wf-query-1.png

 

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.

 

wf-query.png

 

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

 

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

poojac35931336

Avatar

poojac35931336

poojac35931336

23-09-2020

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

Answers (3)

Answers (3)

Avatar

Avatar

ChitraMadan

MVP

Avatar

ChitraMadan

MVP

ChitraMadan
MVP

23-09-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.

 

Avatar

Avatar

Nikhil-Kumar

MVP

Avatar

Nikhil-Kumar

MVP

Nikhil-Kumar
MVP

24-09-2020

@rsl_lucky - 

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

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

882

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

882
Arun_Patidar
MVP

24-09-2020

Hi,

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

 

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