Expand my Community achievements bar.

SOLVED

Customization of Pathbrowser browse functionality

Avatar

Level 2

We have a requirement to display asset references or folder and image structure in pathbrowser browse window.

The folder structure is dynamic and usually will be having folder>images structure. We need to either show or display this structure in the browse or select path dialog.

We have referred the below link.

Experiencing Adobe Experience Manager - Day CQ: AEM 62 - Touch UI extend Path Browser picker window ...

Thanks in advance.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

You can define rootPath as a property for pathfield or pathbrowser coral3 field types like below:

Screen Shot 2018-06-05 at 9.02.16 PM.png

It will allow you to open root folder for browse as specified.

You can check more info below:

PathField — Granite UI 1.0 documentation

Thanks

Arun



Arun Patidar

View solution in original post

4 Replies

Avatar

Level 10

Does this article help you in this use case?

Avatar

Level 2

Hi Scott,

We are constructing a custom structure which is not available under the /content.  But we wanted to see if it's possible to point the custom structure along with the /content data in the ui front of select path dialog.  So with this link we were not able to do so

Thanks

Manoj

Avatar

Correct answer by
Community Advisor

Hi,

You can define rootPath as a property for pathfield or pathbrowser coral3 field types like below:

Screen Shot 2018-06-05 at 9.02.16 PM.png

It will allow you to open root folder for browse as specified.

You can check more info below:

PathField — Granite UI 1.0 documentation

Thanks

Arun



Arun Patidar

Avatar

Level 2

Yes specifying rootPath will pick specific content. In our use case we had to manipulate the data which was shown in the selection dialog box. I was able to do so by overlaying the pathbrowsercolumn.jsp file and customize it to our requirements. This is the file responsible for populating the data in the pathbrowser.

Overlay Path: /apps/cq/gui/components/common/pathbrowser/pathbrowsercolumn/pathbrowsercolumn.jsp

Actual Path: /libs/cq/gui/components/common/pathbrowser/pathbrowsercolumn/pathbrowsercolumn.jsp

Thanks,

Manoj