restrict pathfield's root path level | Community
Skip to main content
sureshy2015
New Participant
October 16, 2015
Solved

restrict pathfield's root path level

  • October 16, 2015
  • 2 replies
  • 1387 views

we have a requirement in which we want to show only a particular level in pathfield.Please help me in achieving it.

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 smacdonald2008

See:

  • Browsing only a subtree
    var pathfield = new CQ.form.PathField({ rootPath: "/content/dam", showTitlesInTree: false });

This is in the PathField docs: http://docs.adobe.com/docs/en/cq/5-6/widgets-api/index.html?class=CQ.form.PathField

2 replies

smacdonald2008
smacdonald2008Accepted solution
New Participant
October 16, 2015

See:

  • Browsing only a subtree
    var pathfield = new CQ.form.PathField({ rootPath: "/content/dam", showTitlesInTree: false });

This is in the PathField docs: http://docs.adobe.com/docs/en/cq/5-6/widgets-api/index.html?class=CQ.form.PathField

sureshy2015
New Participant
October 16, 2015

i want to restrict/show only some level.

root

A->B->C

D->E->F

 

I want to show first level tags only i.e,A and D not all