Implement Pathbrowser

Avatar

Avatar

send2viki

Avatar

send2viki

send2viki

21-09-2020

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

BrianKasingli

MVP

Avatar

BrianKasingli

MVP

BrianKasingli
MVP

22-09-2020

@send2viki 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-p... 

Answers (0)