Possible approach - AEM Dialog

Avatar

Avatar

AEMnewbie

Avatar

AEMnewbie

AEMnewbie

02-11-2020

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 ? 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Anudeep_Garnepudi

Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi

05-11-2020

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

Answers (2)

Answers (2)

Avatar

Avatar

sureshd71454102

Avatar

sureshd71454102

sureshd71454102

05-11-2020

<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

 

aem-path-field.png

 

can you give your dialog code here

Avatar

Avatar

sureshd71454102

Avatar

sureshd71454102

sureshd71454102

04-11-2020

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.