Menu

Add a custom action/option in AEM Assets

AEM Assets browser or asset editor have too many options to quickly perform the action like publish, edit, properties, download and many more. Today in this blog we will explore and implement how we could customoze this ribbon add a similar action in asset editor.

All these action items are coming from the libs path  /libs/dam/gui/content/assets, if a developer wants to add a custom action then developer have to create the same overlay assets directory so sling merger will read the custom action and load with the other options in Assets editor.  

Libs directory



Apps directory

Under the assets >> jcr:content >> actions >> selection add a node of type nt:unstructure, as shown here in below image.




Here we have added the action Translation as option, and this is how it will appear in the AEM Assets browser.



References:

Attention-based models | Generative AI | Artificial Intelligence

Attention-based models help focus the network on important features of the input and ignore less important features.

Create local tunnel to access localhost over internet | ngrok | serveo

As a developer very frequently we need to test the things over internet that are under development and running locally on localhost for real time testing. To expose the localhost or local machine over internet we need to create tunnels, that are crearting redirect to local application. In respect to this there are few easy tools avaiable in the market that can quickly create this tunnel for testing and provides a subdomain url. Few of them are listed below.

  1. Ngrok is one the prominent tools that come with limited free access and for more use we have to go for premium. Please refer the ngrok getiing started document for quick setup https://ngrok.com/docs/getting-started.

    Command to start a tunnel using ngrok: ngrok http http://localhost:8080

  2. Serveo is the one the best and quick tool, that doesnt required any installation. We just need to run a ssh command and our tunnel is ready. The only prequisite is we should have ssh installed in our machine, and I assume, every developer machine have this via putty, git, powershell, and many other tools. For quick reference and setup guide please refer https://serveo.net.

    Serveo command to start a localhost tunnel: ssh -R 80:localhost:4503 serveo.net