Moving from pathbrowser to pathfield | Community
Skip to main content
Level 4
August 26, 2021
Solved

Moving from pathbrowser to pathfield

  • August 26, 2021
  • 2 replies
  • 2567 views

We had a recent requirement to select multiple selections, instead of single selection . Since pathbrowser does not support multiple selection and is a coral2/deprecated component , we decided to move to pathfield . 2 main features that are missing are hover over the column item does not give the column name and selecting it does not give a preview option .. Is there any reason why this 2 critical feature were removed from pathfield .. And is there an easy way to set them up for pathfield by just adding some property?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Asutosh_Jena_

Hi @aemnewbie 

 

PathField supports the concept of suggestion where the list of options are presented based on what the user types. It also supports the concept of picker where the user allows to pick the value in more advanced way (usually implemented as a dialog showing a tree view).

 

Pathbrowser - It should be used to pick assets. It allows previewing resource.
Pathfield - It should be used to pick link target for href, wherever you don't need to browse/see resource preview.

 

Coral 2 - granite/ui/components/coral/foundation/form/pathbrowser
Coral 3 - granite/ui/components/coral/foundation/form/pathfield

 

https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/form/pathfield/index.html

 

Thanks!

2 replies

Asutosh_Jena_
Community Advisor
Asutosh_Jena_Community AdvisorAccepted solution
Community Advisor
August 26, 2021

Hi @aemnewbie 

 

PathField supports the concept of suggestion where the list of options are presented based on what the user types. It also supports the concept of picker where the user allows to pick the value in more advanced way (usually implemented as a dialog showing a tree view).

 

Pathbrowser - It should be used to pick assets. It allows previewing resource.
Pathfield - It should be used to pick link target for href, wherever you don't need to browse/see resource preview.

 

Coral 2 - granite/ui/components/coral/foundation/form/pathbrowser
Coral 3 - granite/ui/components/coral/foundation/form/pathfield

 

https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/form/pathfield/index.html

 

Thanks!

Umesh_Thakur
Community Advisor
Community Advisor
August 26, 2021

I. don't think so we have any option provided out of the box to handle your requriment.

then only way you have is, use javascript or jquery to create that feature in your dialog.

Hope this will help.

Umesh Thakur