When content is distributed using Sling Content Distribution (SCD) in AEM, the cq:lastReplicated and cq:lastReplicatedBy properties are not updated because SCD operates differently from the traditional replication mechanism. SCD is designed for distributing content across different Sling instances w...
can you please provide the .content.xml details
Wrapper Component Definition (ui.apps/src/main/content/jcr_root/apps/projectName/components/dynamicmedia/.content.xml)
<?xml version="1.0" encoding="UTF-8"?><jcr:rootxmlns:sling="http://sling.apache.org/jcr/sling/1.0"xmlns:jcr="http://www.jcp.org/jcr...
You cannot directly modify the jcr:createdBy property as it is protected. Instead, you should create the content fragment using a ResourceResolver that is authenticated as the user who started the workflow. This way, the jcr:createdBy property will be set correctly.
String userId = workflowSession...
@ValueMapValue@getterprivate Calendar cardEventDate;
== you have to write a method to format date ==
For Date:
public String getFormattedDate() {if (cardEventDate != null) {SimpleDateFormat dateFormat = new SimpleDateFormat("dd");return dateFormat.format(cardEventDate.getTime());}return "";}
For...
you can try or test like this:
Get the quick publish button id and write a event listener using javascript function:
$(document).on("click", ".cq-siteadmin-admin-actions-quickpublish-activator", function(e) {e.preventDefault();var selectedPages = Granite.author.selection.getSelectedPages();if (sel...
Please check this:
you can hide those button using ACL if you remove replication permission from /content part
Another way is to use sling merger https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/sling-resource-merger.html where you can override existing navigation nodes(/libs/wc...
First get the user id from workflow session , then set the jcr:createdBy with the userId
String userId = workflowSession.getUser().getID();
ValueMap properties = cf.adaptTo(Resource.class).adaptTo(ValueMap.class);properties.put("jcr:createdBy", userId);
Generally the translation step in AEM creates separate folders for assets in each language to maintain a clear separation of content for different locales. This approach ensures that each language version of the site has its own set of assets, which can be independently managed and localized.
Differ...
Use the Resource API to determine the node type (page, asset, experience fragment).
Use the ReferenceSearch API to get references for the node.
String nodeType = getNodeType(resource);List<Reference> references = getReferences(resource);
Resource resource = resourceResolver.getResource(reso...