Possible approach - AEM Dialog

Avatar

Avatar
Validate 1
Level 1
AEMnewbie
Level 1

Likes

0 likes

Total Posts

89 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Applaud 5
View profile

Avatar
Validate 1
Level 1
AEMnewbie
Level 1

Likes

0 likes

Total Posts

89 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Applaud 5
View profile
AEMnewbie
Level 1

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
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Anudeep_Garnepudi
MVP

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
Ignite 1
MVP
SureshDhulipudi
MVP

Likes

163 likes

Total Posts

174 posts

Correct reply

49 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile

Avatar
Ignite 1
MVP
SureshDhulipudi
MVP

Likes

163 likes

Total Posts

174 posts

Correct reply

49 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile
SureshDhulipudi
MVP

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
Ignite 1
MVP
SureshDhulipudi
MVP

Likes

163 likes

Total Posts

174 posts

Correct reply

49 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile

Avatar
Ignite 1
MVP
SureshDhulipudi
MVP

Likes

163 likes

Total Posts

174 posts

Correct reply

49 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile
SureshDhulipudi
MVP

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.