@dasarinikhil
In the rule editor -> value commit event you can use below.
This key can be used to encrypt and decrypt.
var key = "encrypkey";
encrypting:
var encrypted = CryptoJS.AES.encrypt(value, key);// console.log("encrypted ==>"+encrypted);
decrypting:
var decrypted = CryptoJS.AES.decryp...
@subnaik : if you dont want to hard code this path , Then you can do below options.
1) you can pass as a request parameter to this servlet as
http://localhost:4502/bin/content/api/v1/getEventsListBypath2?path=/content/dam/content-admin/events/event-detail/test/testevent2023-9-3/
@Overrideprotected...
HI @subnaik :
You need to provide the path to get Resource.
Resource jcrResource = resourceResolver.getResource("testevent2023-9-3");
replace with
Resource jcrResource = resourceResolver.getResource("/content/dam/content-admin/events/event-detail/test/testevent2023-9-3/jcr:content");
and one ...
@sallewar1 :
If you create a folder using configuration browser , you can see that folder in the below path.
https://localhost:4502/libs/wcm/core/content/sites/templates.html/conf
Make sure you have selected the Editable Templates checkbox while creating the folder.
then you can go inside the fo...
@sallewar1 :
in that case, you can go to below location and create it.
http://localhost:4502/libs/wcm/core/content/sites/templates.html/conf/we-retail
thanks ,
Siva
@sallewar1 :
You can create like below.
Go to http://localhost:4502/aem/start
click on tools and then click general -> configuration-browser.
Then it will open the below GUI , there you can create
@ferosekhan :
You can add a new field in your dialog as runmode and you can input as publish.
Then in your sightly you an call as ,
<sly data-sly-use.runMode= "com.sourcedcode.core.models.utils.RunModeHelper ;">
<div data-sly-test="${runMode.getHasRunMode}">
// you can write your component ...
@campaignap:
In postman , I hope you have selected the Authrorization type as "Basic Auth" and you are providing the credentials which are exist in Publisher as well.
Thanks
Siva
@Aditya-Singh :
What is the data you want to expose ?
Because , we can expose or export data using the Sling models instead of Sling servlet.
and if multiple requests hitting the servlet or Sling model exporter , there will be no issues.
Thanks
Siva