Hi @EstebanBustamante FYI, Above apache configuration is working for AMS in dev and stage environment. However, It's not working for AEM as a cloud services in dev and stage environments.
Thanks for your reply @EstebanBustamante !!Actually I should able to see the Link response header like below in dev environment. Below screenshot represents my local server Response header However, I could not see any Link header in dev environment's apache server like in my local server. Please l...
Hi everyone,We are using AEM as a Cloud Service. I'm trying to set the Link header for PDFs using the following Apache configuration: <LocationMatch "\.(?i:pdf)$">
ForceType application/pdf
Header set Content-Disposition inline
RewriteRule ^ - [E=FILENAME:https://%{HTTP_HOST}%{REQUEST_URI}]
...
Thanks @Siva_Sogalapalli Could you please help me, how to get JSON Objects based on prefix words in the key?
ex:
Copy the child elements to the new JSON object if name is barType or names starts with foo, but not fooPage
I have the following JSON Object
import org.json.JSONObject;
JSONObject jsonObject = new JSONObject("jsonString")
The output of the above jsonObject follows:
{
"elements": {
"barType": "bar",
"website": "website",
"endDate": "end",
"fooText": "text",
"fooDisclaimer": "Discla...
this is the sling:resourceType for that componet. sling:resourceType :wcm/msm/components/ghost
could you please help me with that how to return the resource list except for the ghost resource?
protected List<ResourceListItemImpl> readItems() {
return getChildren().stream()
...
Thanks @SantoshSai I guess it won't work as I am not able to see any ".ghost" class. Reference: <div data-cq-data-path="/content/weretail/home/livecopysample/jcr:content/root/decorativepanel/content/row/grid/text" class="cq-Editable-dom"><div class="aem-placeholder">Ghost Component<br><strong>wcm/ms...
Hi Team,
If a component is deleted from a live copy page, AEM replaces it with a "ghost" component ( wcm/msm/components/ghost ).
As per business requirements,
I have to delete this Ghost component on publish server only but It should remain in the page model on AEM author to ensure that use...