How to add multiple rootPath values in Pathfield or Path browser? | Community
Skip to main content
sesmic
April 9, 2023
Solved

How to add multiple rootPath values in Pathfield or Path browser?

  • April 9, 2023
  • 2 replies
  • 952 views

Hi Team,

I'm working on a component in which I want to add/allow multiple rootPath for Pathfield/Path browser. The rootPath is String type only & can't take multiple strings. I found this old question but it's not working for me. So, can you please suggest any workaround for this?

 

Regards,

sesmic

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 B_Sravan

Hi @sesmic ,

 

there's no out-of-the-box solution to have multiple root paths.
you'll have to write some logic to fulfill your requirement.

you can mimic the behavior of List component's (core component) build-your-list-by method, to show and hide the root paths for different selections, to have respective root paths.

Thank you.

Regards,
Sravan

2 replies

B_Sravan
Community Advisor
B_SravanCommunity AdvisorAccepted solution
Community Advisor
April 9, 2023

Hi @sesmic ,

 

there's no out-of-the-box solution to have multiple root paths.
you'll have to write some logic to fulfill your requirement.

you can mimic the behavior of List component's (core component) build-your-list-by method, to show and hide the root paths for different selections, to have respective root paths.

Thank you.

Regards,
Sravan

Jagadeesh_Prakash
Community Advisor
Community Advisor
April 10, 2023

@sesmic  Below use case works for multiple rootPath for Tag picker. The same you can customize according to your requirement

 

http://experience-aem.blogspot.com/2015/05/aem-61-touch-ui-multiple-root-paths-in-tags-picker.html