Implement Pathbrowser | Community
Skip to main content
Level 3
September 22, 2020
Solved

Implement Pathbrowser

  • September 22, 2020
  • 1 reply
  • 4884 views

Hello Community - I have a requirement to create a utility page that has a button on it. On click of the button, we need to open a pathbrowser and let the authors select the page/html. There is no dialog option for this scenario. The utility is based on JSP. Has anyone implemented such scenarios? If so, could you please provide some samples for the same?

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 BrianKasingli

@s1101v with Touch UI, your dialogue can be set up using the "Path Field", Granite UI 1.0 syntax:

 

<pathfield-example-logoPath jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/form/pathfield" fieldLabel="Logo Path" name="./logoPath" required="true" rootPath="/content/dam"/>

 

Source: https://sourcedcode.com/blog/aem/aem-granite-ui-1-0-form-components-xml-reference-guide#granite-ui-pathfield 

1 reply

BrianKasingli
Community Advisor and Adobe Champion
BrianKasingliCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
September 22, 2020

@s1101v with Touch UI, your dialogue can be set up using the "Path Field", Granite UI 1.0 syntax:

 

<pathfield-example-logoPath jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/form/pathfield" fieldLabel="Logo Path" name="./logoPath" required="true" rootPath="/content/dam"/>

 

Source: https://sourcedcode.com/blog/aem/aem-granite-ui-1-0-form-components-xml-reference-guide#granite-ui-pathfield 

Level 5
September 24, 2020
@briankasingli - I am not looking for the Touch UI dialog syntax. My requirement is to open the pathbrowser ui to let the authors to select the pages. Like a browse option to select the pages. In JSP, I have a button, on click of button, I need to open the popup for the page selection.