I have a multifield pathbrowser in a dialog . I am trying to see if there is a way to provide an edit option for the selected path in the dialog .
i.e if the path is /content/abc/def I wanna provide an edit option right next to that pathbrowser which could redirect to the /content/abc/def page or any inline editing option. Is there any such option provided by AEM ?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @AEMnewbie
If you want that page path to be opened as a popup window use the below pathbrowser widget. If you want to directly navigate to that page with dialog open it is not possible.
<pagePath
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"
fieldLabel="Page path"
name="./pagePath"
rootPath="/content"/>
AG
Can you please give us your business requirement clearly? and in what scenario it will be using and the output
1) Do you want to edit/modify the path configured by author in path filed after selecting path one to path two?
i.e
path configured: /content/abc/def
path after edit / format: /content/abc/defpage
you don't have to provide another option to edit again the configured path. you can modify using Javascript or Sling Model to manipulate the path configured and send to output HTML Page.
Views
Replies
Total Likes
<path
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathfield"
required="{Boolean}true"
fieldDescription="External or internal link"
fieldLabel="URL"
name="./path"
rootPath="/content"/>
In this path field, either you can enter value or navigate to the location and select path / page
can you give your dialog code here
Hi @AEMnewbie
If you want that page path to be opened as a popup window use the below pathbrowser widget. If you want to directly navigate to that page with dialog open it is not possible.
<pagePath
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"
fieldLabel="Page path"
name="./pagePath"
rootPath="/content"/>
AG
Views
Likes
Replies