How to add multiple rootPath in Coral 3 Pathfield | Community
Skip to main content
Level 2
August 11, 2017

How to add multiple rootPath in Coral 3 Pathfield

  • August 11, 2017
  • 1 reply
  • 5358 views

How to add multiple rootPath in Coral 3 Pathfield ? It currently allows only one rootPath. I need 2 or 3 different rootPath to be shown for selection.

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

1 reply

smacdonald2008
Level 10
August 11, 2017

Look at the docs here - https://techrevel.blog/2017/05/26/coral-3-granite-ui-components/

This data type only supports a string, not multiple strings.

vaibhavskAuthor
Level 2
August 14, 2017

Yes, it only supports a String ie. only one rootPath. But is there any way I can override this and allow multiple rootPaths to be used with pathField component ?

viveksachdeva
Community Advisor
Community Advisor
August 15, 2017

You will need to overlay/extend this component...

- Overlay /libs/granite/ui/components/coral/foundation/picker/picker.jsp to accept multifield.

- Overlay /libs/granite/ui/components/coral/foundation/picker/picker.jsp to check for multiple root paths instead of single, in method "getCrumbs".