내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Is there something like a rootPath behaviour for cq/gui/components/authoring/dialog/fileupload?

Avatar

Level 3

Hello,

 

I have a fileupload field in my dialog which will, when clicked on browse, display selection path that i predifined(wanted behaviour).

The default behaviour is to display everyhting in dam path but i would like to make author only browse from my path like /content/dam/project. I know this is possible with rootPath on some other components. I could use granite/ui/components/coral/foundation/form/pathbrowser for this(with rootPath), but the problem is that pathbrowser doesnt have image preview(thumbnails) next to asset name. Is there any way to achieve this? 

 

Thanks,

Luka

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor

Hi @luka2, you can use granite/ui/components/coral/foundation/form/pathfield. It should meet all your needs:

  • it shows asset thumbnail
  • it supports rootPath configuration

Here is example of pathfield usage with rootPath set to /content/dam
pathfield.png

Please also be aware that pathbrowser is deprecated and pathfield should be use instead.

원본 게시물의 솔루션 보기

2 답변 개

Avatar

정확한 답변 작성자:
Community Advisor

Hi @luka2, you can use granite/ui/components/coral/foundation/form/pathfield. It should meet all your needs:

  • it shows asset thumbnail
  • it supports rootPath configuration

Here is example of pathfield usage with rootPath set to /content/dam
pathfield.png

Please also be aware that pathbrowser is deprecated and pathfield should be use instead.

Avatar

Level 3

Hello @lukasz-m 

Thank you for your answer.

The problem with pathfield is that we lose drag and drop functionality as well as search and filter for dam assets.