@mewan86 In part 1, you are request.getHeader("referer") to get page path, please check if it unavailable on publisher. If yes this is causing your code to break - Not recommendedComing to the code you have later, please check if the userId for resourceResolver and check if it has permission to rea...
@TB3dock , JCR Property type ('type'). Can be one of Date, Boolean, Double , String, Long, or Binary. All the values in String[] for that property are extracted by the indexing engine. This enables you to search the resource by a specific value in the array of values for that property. The only thin...
@YashW In your groovy script, adapt resource/page to ReplicationStatus ReplicationStatus replicationStatus = resource.adaptTo(ReplicationStatus.class)
or
ReplicationStatus replicationStatus = page.adaptTo(ReplicationStatus.class) now you can add conditions to validate if resource/page is activat...
@NathanVieira The above code was to give you an idea as to how you need to update your HTL to include embed component with data-sly-test, Of course you may have to tweak this for your component.Please make sure that path of resource type is of that of the embed component. And if we correctly apply ...
Using data-sly-test you can render two different <div> tags based on the condition if an image is authored or render an embed component otherwise.<div class="cmp-quoteGroupCard--mediaArea">
<div data-sly-test="${image.src}">
<!-- Existing image code -->
</div>
<div data-sly-test=...
Hi @KMarchewa , If you want to show an error pop up to the user on upload you may want to check this out https://experience-aem.blogspot.com/2021/05/aem-cloud-service-configure-file-upload-max-size-per-asset-type-restrict-upload-ui.html This would help to show error on UI.
Hi @Shardendu_Jha ,I believe you are referring to Web-Optimized Image Delivery https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/web-optimized-image-delivery.html?lang=en Web-optimized image delivery is only available in AEM as a Cloud Service. In cases wher...
Can you profile the test case structure here, as to how you are initializing the AemContext and the dependencies for unit tests. Some more information and context will be helpful.
Did anyone get a chance to explore The Content Copy Tool | Adobe Experience Manager on AEMaaCS. If yes does it reprocess the copied content in the destination or is it like an exact replica, what if Dynamic Media configurations are different in these environments.
As @ManviSharma , suggested this could be a cache issue as well and most probably it is.By default AEM will invalidate cache based on a Time To Live (TTL) definition. These TTLs can be defined by the following parameters as shown in this document https://experienceleague.adobe.com/docs/experience-ma...