Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

restrict pathfield's root path level

Avatar

Level 4

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

0 Replies

Avatar

Correct answer by
Level 10

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

Avatar

Level 4

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