hi @Chandra_Hire the fix is working fine when I "view it as published" but it breaks when viewed on published page.
The value cq:lastReplicationAction gives null value and hence I am not able to proceed
Hi, I want a list of published pages so that I can use them further,
Currently, I am using page.listChildren() it fulfill my purpose other but I only want the pages that are unpublished
Can anyone help me out, please
Thank you
@arunpatidar I am getting file not found error even when I have placed the file at the same place
:
filePath = "/content/dam/demo/output.csv";
File file = new File(filePath);def rows = file.readLines().tail()*.split(','); // getting exception here as file not fou...
I have a csv file placed in dam , I want to write a groovy script to update the csv file with the new data,
the data I am able to fetch with the script only thing that is require is to push it into csv file
e.g : how to push "demo data " to csv file
Please help me out here, what could be the pos...
in this case also , if there are two components the code :
allInstances.each(function(){
let $this = $(this); // component Insurance
// do business
})
will run twice and the business logic will be implemented two times, I only want it to execute only once for each element
Hi, Currently I am writing my javaScript code inside my html only
for e.g :
-> if my component name is "cmp1" then I am writing my js code inside cmp1.html
->if there are two components on the same page my js of cm1 is conflicting with cm2
-> e.g. : I am creating div tag in each js , and access...
I have a custom component say "componentA"
->I am writing my business logic in my sling model of the component and using the fields via annotation @ValueMapValue
->and using the properties in HTL via e.g : ${model.propertyOne}
-> But when I put two component on the same page , my HTL behaves very d...
I want to write a groovy script where I have to change one of the text field value in the component dialog box
-> I have the paths of the pages where this component has been used
-> the resourceType of component is : /components/content/form/embed
->the text field name that need to be changed is ...