Expand my Community achievements bar.

Extending editor.html UI

Avatar

Level 3

Hi

 

I want to create an AEM bundle that will extend the default editor.html UI and add a button near to the preview button.

Is it possible to do via a bundle?

BenBr9_0-1731323431109.png

 

14 Replies

Avatar

Level 3

Hi

 

I want to add the button programmatically using an AEM bundle that will do the job. I don't want to manually do anything or configure anything in AEM. I want to create a bundle that once installed, my users will have a new button in the editor UI.

 

Avatar

Level 8

Hi @BenBr9,

the solutions Arun shared will enable you to achieve exactly that. You can overlay the OOTB nodes in your custom code and deploy them as part of your AEM package.

 

Good luck,

Daniel

 

Avatar

Level 3

Can you maybe share / point me to some code reference?

I didn't understand what to do from the links above - it seems I need to add nodes manually or do something with CRXDE

Avatar

Level 8

Hi @BenBr9,

any customization you do in the CRX/de can be exported with Package Manager (build -> download) and then added to your project codebase. You just need to set up the filters correctly and then your code will replace the definitions in the JCR database. These are the basics of AEM, maybe check some video tutorials on YouTube or Udemy in case you haven't used this approach before.

 

Good luck,

Daniel

 

 

Avatar

Community Advisor

Hi @BenBr9 
The Manuals changes are just for local, once you are fine with overlay, just package it extract in your codebase inside ui.apps module and update the filters.

 

Example package with overlay : https://github.com/arunpatidar02/demo/blob/master/view-as-published-2.zip 



Arun Patidar

Avatar

Level 3

I downloaded the file but cannot unzip it - it says this is an unsupported format

Am I missing something?

 

Avatar

Community Advisor

Hi @BenBr9 
You need to use terminal/CLI to unzip the package.



Arun Patidar

Avatar

Community Advisor

Hi @BenBr9 
You can use System provides archive utilities, you don't need nay external tool, for example if you are using MAC then use unzip command from terminal

 

arunpatidar_1-1731504793207.png

 

 



Arun Patidar

Avatar

Level 3

Ok. I took the package content and put it in my ui.apps and build it. I installed the bundle in AEM, but I don't see any changes in the actions menu of the editor UI.

 

Maybe my folder structure is incorrect? Maybe I should change something / adjust paths etc?

BenBr9_0-1731579254846.png

 

Avatar

Community Advisor

Hi @BenBr9 
This was the sample package, it will not work. you can to overlay node from CRXDE and create a package like what I shared and put in your code.

The package I have shared was for https://medium.com/@arunpatidar26/custom-button-in-aem-sites-console-94cf36cbed0c 



Arun Patidar