Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to create child pages using custom cq:dialog!

Avatar

Avatar
Contributor
Level 2
jezwn
Level 2

Likes

9 likes

Total Posts

69 posts

Correct Reply

2 solutions
Top badges earned
Contributor
Shape 1
Springboard
Establish
Validate 1
View profile

Avatar
Contributor
Level 2
jezwn
Level 2

Likes

9 likes

Total Posts

69 posts

Correct Reply

2 solutions
Top badges earned
Contributor
Shape 1
Springboard
Establish
Validate 1
View profile
jezwn
Level 2

26-09-2019

I have got this landing page containing a list component which fetches image, title and description from it's child pages and display it as grid. It might be clear that the child page contains an image component along with title and text. I need my cq:dialog in the landing page to be able to create a new child page passing title, text and image path.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,356 likes

Total Posts

3,227 posts

Correct Reply

917 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,356 likes

Total Posts

3,227 posts

Correct Reply

917 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

26-09-2019

Hi,

You what to create a child page if doesn't exist from list component dialog?

Anyways from dialog you can only create a page using ajax call on dialog-success event.

Create a dialog to provide child page title, template and page name, when submitting the dialog make an ajax call to a servlet which uses Pagemanger API to create the child page, later you can hold the dialog submit by returning false or proceed with dialog submit by returning true as the response from servlet.

PageManager ("The Adobe AEM Quickstart and Web Application.")

Answers (2)

Answers (2)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,356 likes

Total Posts

3,227 posts

Correct Reply

917 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,356 likes

Total Posts

3,227 posts

Correct Reply

917 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

27-09-2019

Yes, you can pass title, image and description.

When the page is created use JCR Node API to add image, text components.

Avatar

Avatar
Contributor
Level 2
jezwn
Level 2

Likes

9 likes

Total Posts

69 posts

Correct Reply

2 solutions
Top badges earned
Contributor
Shape 1
Springboard
Establish
Validate 1
View profile

Avatar
Contributor
Level 2
jezwn
Level 2

Likes

9 likes

Total Posts

69 posts

Correct Reply

2 solutions
Top badges earned
Contributor
Shape 1
Springboard
Establish
Validate 1
View profile
jezwn
Level 2

26-09-2019

Exactly. I need to create a child page from list component dialog. Not just that I need to pass a title to the title component, image path to image component and a description to text component via the same dialog upon page creation.