-
1. Re: How to limit path field selection only to one level?
rush_pawan Jun 6, 2013 9:40 AM (in response to Veena_07)Hi Veena,
There are couple of public config properties which i tried earlier and was expecting to work based on provided description but it did not work.
For example:
if you access widge api - http://dev.day.com/docs/en/cq/current/widgets-api/index.html?class=CQ.form.PathField the "pageSize" variable should provide you solution for above mentioned problem but it doesn't work.
So i would advise to write a listener as below
1. Create a node "listeners" as "nt:unstructured" inside your path field
2. inside the listeners node create a event call as "dialogselect" which will be string and set with function "function(pathfield, path, anchor) {var pathParts=path.split('/'); if(pathParts.length>3){ alert("you can not select this page"); pathfield.setValue(""); return false;}}"
3. Above listener will restrict the user to not select the pages after some depth of level in this case i set it as 3 (you can change accordingly as well as the message if you want)
Of course above will not met your requirement completely but it will help you complete your main goal.
I hope it helps you. Let me know for more information or clarification
Thanks,
Pawan
-
2. Re: How to limit path field selection only to one level?
Sham HCJun 16, 2013 4:13 PM (in response to Veena_07)
I haven't tried in person. But configuring treeloader with dataurl & param depth=0 should work.
-
3. Re: How to limit path field selection only to one level?
Veena_07 Jun 17, 2013 10:54 PM (in response to rush_pawan)Hi pawan,
As you said its satisfying my requirement; eventhough the + signs are expandable i can block the author from selecting it.
Thanks
Veena
-
4. Re: How to limit path field selection only to one level?
Veena_07 Jun 17, 2013 11:07 PM (in response to Sham HC)Hi sham
Can you please explain how to achieve that
Thanks
Veena
-
5. Re: How to limit path field selection only to one level?
snayakar Jun 18, 2013 12:03 AM (in response to Veena_07)Hi Veena,
Node level ACL settings can be set to the logged in user .
So for the logged in Author user we can restrict the access to the node below /content/geometrixx/English path.
Author can view that but cannot access those nodes?
Does that help?