Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
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

2 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