Expand my Community achievements bar.

SOLVED

Moving from pathbrowser to pathfield

Avatar

Level 4

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?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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...

 

Thanks!

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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...

 

Thanks!

Avatar

Community Advisor

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