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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Way to customise cancel inheritance message

Umesh_Thakur
Community Advisor
Community Advisor

Dear Members,

We have one requirement to customise the message, that we are getting while canceling the inheritance on a live copy page.

So  can anyone suggest a way, if we have to accomplish the above requirement.

Step to get the message:

1. Open any live copy page in editor.html.

2. Click on a component then you will have on Cancel Inheritance Icon.

3. On click on the icon You will get one alert confirmation box with "Do you really want to cancel the inheritance?" message.

 

Though we can take help from front-end to show the customise message but I wanted to use the existing feature, if possible so I am checking.

 

Thanks

Umesh Thakur

1 Accepted Solution
Vijayalakshmi_S
Correct answer by
Community Advisor
Community Advisor

Hi @Umesh_Thakur,

Cancel Inheritance modal from Component Tool bar action is rendered from this JS - /libs/wcm/msm/content/touch-ui/authoring/editor/js/msmEditorHook.js

Vijayalakshmi_S_0-1617719445282.png

 

View solution in original post

5 Replies
Arun_Patidar
Community Advisor
Community Advisor

Hi,

The coral dialog is from Javascript https://localhost:4502/libs/wcm/msm/content/touch-ui/authoring/commons.min.js

you may try to create i18n key with a different message that can help.

Umesh_Thakur
Community Advisor
Community Advisor
Hi Arun, Thanks for your response. I have checked path but commons.min.js file itself is not available in my author instance. there is one .js file at /libs/wcm/msm/content/touch-ui/authoring/commons/js/msmTouchUICommons.js and I can see the message here. But when I try to changes some text on it, that is not reflecting in the pop-up. I restated the instance and did empty cache and hard reload on the browser. It didn't work for me.
Vijayalakshmi_S
Correct answer by
Community Advisor
Community Advisor

Hi @Umesh_Thakur,

Cancel Inheritance modal from Component Tool bar action is rendered from this JS - /libs/wcm/msm/content/touch-ui/authoring/editor/js/msmEditorHook.js

Vijayalakshmi_S_0-1617719445282.png

 

View solution in original post