Need a popup while clicking to publish the page before it replicated into the publish node?

Avatar

Avatar
Boost 3
Level 2
keshav_goud
Level 2

Likes

3 likes

Total Posts

35 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Validate 1
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Boost 3
Level 2
keshav_goud
Level 2

Likes

3 likes

Total Posts

35 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Validate 1
Ignite 3
Ignite 1
Give Back 5
View profile
keshav_goud
Level 2

13-07-2020

I want to send small message in email while published my modified page into the pub node Captfsdfsddsure.PNG

either from both side in .../aem/start.html or while page in editor.html(Edit) mode

 

Captursfefdsddse.PNG

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 5
Employee
vanegi
Employee

Likes

392 likes

Total Posts

378 posts

Correct reply

148 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile

Avatar
Give Back 5
Employee
vanegi
Employee

Likes

392 likes

Total Posts

378 posts

Correct reply

148 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile
vanegi
Employee

13-07-2020

You can implement event handlers to create such pop ups, please refer to the document [0] for more details.The following code represents the event handler that is invoked when the Touch UI dialog is opened:

 
1
2
3
$document.on("dialog-ready", function() {
        $(window).adaptTo("foundation-ui").alert("Open", "Dialog now open, event [dialog-ready]");
    });

 

[0]: https://helpx.adobe.com/experience-manager/using/creating-touchui-events.html

Answers (5)

Answers (5)

Avatar

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,049 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,049 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile
Veena_Vikram
MVP

13-07-2020

@keshav_goud I am not sure about your exact requirement. But what I understand from what you have mentioned is that , you might need to send a notification as soon as a page is published. I would say , the best way is to write a workflow , which will send a notification as soon as a page is published. @Varun_Shakya and @ankushb21155798  have provided links you can refer to. 

Avatar

Avatar
Affirm 50
MVP
Vaibhavi
MVP

Likes

216 likes

Total Posts

181 posts

Correct reply

61 solutions
Top badges earned
Affirm 50
Validate 1
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Affirm 50
MVP
Vaibhavi
MVP

Likes

216 likes

Total Posts

181 posts

Correct reply

61 solutions
Top badges earned
Affirm 50
Validate 1
Ignite 1
Give Back 5
Give Back 3
View profile
Vaibhavi
MVP

13-07-2020

Hi @keshav_goud 

In order to send emails first you need to configure the mail server. 

To configure Experience Manager to use a Mail Server, perform these tasks:

1. Login to Apache Felix Web Console at http://server:port/system/console/bundles (default admin user = admin with password= admin).

2. Under the OSGi menu item, select Configuration.

3. Click the + icon that appears in the Day CQ Mail Service row.

4. Enter the following values:

  • SMTP server host name - the SMTP server that you want to use.
  • SMTP server port - the server port to use, Typically this value is 25. 
  • Username - the user name for the SMTP user. 
  • Password - the corresponding password.

5. Click Save.

For more details on configuring emails check the document below. 

https://helpx.adobe.com/experience-manager/6-3/sites/administering/using/notification.html

Once email configuration is ready you need to set up workflow to trigger emails when the page is published. 

Below document give step by step guide on how to configure workflow to trigger email. 

https://helpx.adobe.com/experience-manager/using/creating-custom-aem-workflow-steps.html

 

Along with above, if you need to display the pop up in author it is possible using EventListner. 

EventListner capture the action when the page replication is triggered. 

Below method will be called when the activation is triggered. You can add your logic here to meet your need. 

@Activate
public void activate(ComponentContext context) throws Exception {
     log.info("activating Example") }
Below document explains in detail. 

Avatar

Avatar
Give Back 10
MVP
Varun_Shakya
MVP

Likes

124 likes

Total Posts

97 posts

Correct reply

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

Avatar
Give Back 10
MVP
Varun_Shakya
MVP

Likes

124 likes

Total Posts

97 posts

Correct reply

24 solutions
Top badges earned
Give Back 10
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile
Varun_Shakya
MVP

13-07-2020

If you want to send an email after publishing the page I would say use workflow, refer this.

 

https://www.aemquickstart.in/2016/08/creating-custom-aem-workflow-steps-that.html

 

if you still want a popup on the page after publishing page you can customize consoles refer this

https://docs.adobe.com/content/help/en/experience-manager-64/developing/extending-aem/customizing-co...

Avatar

Avatar
Boost 5
Employee
ankushb21155798
Employee

Likes

5 likes

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
View profile

Avatar
Boost 5
Employee
ankushb21155798
Employee

Likes

5 likes

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
View profile
ankushb21155798
Employee

13-07-2020

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,444 likes

Total Posts

3,328 posts

Correct reply

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

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,444 likes

Total Posts

3,328 posts

Correct reply

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

13-07-2020

Hi,

Are you looking for confirm dialog box to decide send or not send the email? But you are sending email before publishing. What happens if replication is failed due to either replication queue is blocked or publisher is down etc.

Either you have to use workflow or event listener to capture replication status and send email.