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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

restrict pathfield's root path level

sureshy2015
Level 4
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
smacdonald2008
Correct answer by
Level 10
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

2 Replies
smacdonald2008
Correct answer by
Level 10
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

sureshy2015
Level 4
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