Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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