How to make path brower field to limit the navigation till 2 level after jcr:content | Community
Skip to main content
Level 2
Jun 25, 2020 7:00 AM UTC
Solved

How to make path brower field to limit the navigation till 2 level after jcr:content

Hi All,

Hope you are doing well 🙂

 

I just wanted to navigate till after 2 level after jcr:content even though there is a long hierarchy. 

 

As per requirement navigation should be limited upto test1 (Above attached screenshot) even though its having one hierarchy followed by bladepar1 and so on.

 

In dialog level I have added below properties 

The above property allow me to navigate till end of hierarchy , so how can we restrict the navigation till 2nd depth after jcr:content.

 

Please help me on that....

 

@kautuk_sahni @Arun_Patidar @Vish_dhaliwal @Andrew_Khoury @Briankasingli @antoniom5495929 @khamat_bn @sunjot16 @varun_shakya 

 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Varun_Shakya
Varun_ShakyaAccepted solution
New Participant
Jun 25, 2020 10:37 AM UTC

One solution could be you provide regular expression instead of "/content" which serves your purpose something like restrict the selection up to level Two.(Not sure about this)

 

Another one can be you let author select content path up to any level, but while saving it you reduce path up to level 2. This can be done by writing a script or listener for path browser field.

5 replies

Level 2
Jun 26, 2020 4:37 AM UTC
Is this requirement achievable ?
Translate
Varun_Shakya
Varun_ShakyaAccepted solution
New Participant
Jun 25, 2020 10:37 AM UTC

One solution could be you provide regular expression instead of "/content" which serves your purpose something like restrict the selection up to level Two.(Not sure about this)

 

Another one can be you let author select content path up to any level, but while saving it you reduce path up to level 2. This can be done by writing a script or listener for path browser field.

Translate
Level 2
Jun 26, 2020 4:36 AM UTC
I tried with regex as well as listener still this requirement is not achievable.
Translate
Suraj_Kamdi
New Participant
Jun 25, 2020 8:18 AM UTC

@malaya_ranjand4 

Can you please elaborate by adding more details?

By the way , What is your requirement?

Translate
Level 2
Jun 25, 2020 8:37 AM UTC

The requiremnt is to limit the navigation till 2nd level after JCR: Content (i.e. test1 by refering to pic1). I have added image for making it transparent.

Translate