since ‎22-01-2021
‎20-04-2021
niks1
Level 1
Re: [CQ5] - Publisher enviornment is having stale/old con...
Avatar

niks1

niks1
- Adobe Experience Manager
Thanks @bilal_ahmad . Sorry for late reply. I was out sick from last couple of weeks due to this unable to check the response. Here is what i tried in query builder but it is not giving all pages :type=cq:Pagepath=/contentdaterange.property=jcr:content/cq:lastModifieddaterange.lowerBound=2020-10-01orderby=@jcr:content/cq:lastModifiedorderby.index=trueorderby.sort=asc I want list of all pages which got published after 1st Oct'2020.

Views

34

Likes

0

Replies

0
Re: how to get the url query string paramters value
Avatar

niks1

niks1
- Adobe Experience Manager
@Anudeep_Garnepudi - Since Launch Disabled is always getting displayed even if the request url is having launchDisabled=true . In this case, launch Disabled should not be displayed. Something wrong with this if logic. if((request.getParameter("launchDisabled")).equalsIgnoreCase("true")) { return launchEnabled; }

Views

26

Likes

0

Replies

0
Re: [CQ5] - Publisher enviornment is having stale/old con...
Avatar

niks1

niks1
- Adobe Experience Manager
Thanks for the reply @bilal_ahmad. I tried updating one of the page and publish it but still on the server it is showing old data. Package creation - as in whole site package ? If Yes, how to do it in CQ5 . I know how to do it in AEM but not sure on CQ5

Views

103

Likes

0

Replies

0
[CQ5] - Publisher enviornment is having stale/old content
Avatar

niks1

niks1
- Adobe Experience Manager
Due to some reason , we need to bring our few publisher down. Now when i am trying to bring those back it is having old data or stale data which was published before we brought them down. Can you please help me, how we can have the latest data on the publisher server. Also, how i can setup parallel author instance and move content from one server to other.

Views

119

Likes

0

Replies

5
Re: how to get the url query string paramters value
Avatar

niks1

niks1
- Adobe Experience Manager
@Anudeep_Garnepudi- One observation if from Model i return false then in all cases i dont see the Launch Enabled . If i return true , i always see. Here is my code. public String getLaunchEnabled() {if (request.getParameter("launchDisabled").equalsIgnoreCase("true")) launchEnabled = "false";return launchEnabled;}

Views

153

Likes

0

Replies

0
Re: how to get the url query string paramters value
Avatar

niks1

niks1
- Adobe Experience Manager
@jbrar- No still not working. I tried asModel code @SlingObjectprivate SlingHttpServletRequest request;private String launchEnabled; public String getLaunchEnabled() {if (request.getParameter("launchDisabled") == null) return "true";return "false";} htmlLaunch Enabled This is getting displayed always

Views

78

Likes

0

Replies

0
Re: how to get the url query string paramters value
Avatar

niks1

niks1
- Adobe Experience Manager
@Anudeep_Garnepudi- I tried as suggested but it is still not working . I am able to see the launch Enabled in both the cases . https:// and https:///?launchDisabled=true I tried exactly same code as u mentioned above ;@SlingObject. -- as @Self is giving error i am using @SlingObjectprivate SlingHttpServletRequest request; private String launchEnabled; public String getLaunchEnabled() {if (request.getParameter("launchDisabled") == null) return "true";return "false";}HTML Launch Enabled not sure ...

Views

198

Likes

0

Replies

0
Re: how to get the url query string paramters value
Avatar

niks1

niks1
- Adobe Experience Manager
@Anudeep_Garnepudi - Thanks for checking this and responding. So basically if request parameter is having launchDisable we dont want to load the data-sly-test and if it doesn't have that parameter load the data-sly-test value

Views

232

Likes

0

Replies

0
Re: how to get the url query string paramters value
Avatar

niks1

niks1
- Adobe Experience Manager
@Anudeep_Garnepudi- when i tried above code is always getting displayed as data-sly-test is checking if launchEnabled is having value or not. So i added a condition check and changed launchDisabled from boolean to String but somehow it is still not working.public String getLaunchEnabled(){if (request.getParameter("launchDisabled") == null)launchEnabled = "true" ;return launchEnabled;}HTML : Thanks for your help in advance.

Views

247

Likes

0

Replies

0
Re: how to get the url query string paramters value
Avatar

niks1

niks1
- Adobe Experience Manager
@Anudeep_Garnepudi- I tried as suggested but it is still not working .public boolean getlaunchEnabled() {return !(Boolean.parseBoolean(request.getParameter("launchDisabled"))) ;} andhtml

Views

281

Likes

0

Replies

0
Re: how to get the url query string paramters value
Avatar

niks1

niks1
- Adobe Experience Manager
@Anudeep_Garnepudi - I tried as suggested but it is still working . public boolean getlaunchEnabled() { return !(Boolean.parseBoolean(request.getParameter("launchDisabled"))) ; }//?????

Views

303

Likes

0

Replies

0
Re: how to get the url query string paramters value
Avatar

niks1

niks1
- Adobe Experience Manager
@jbrar we are on AEM 6.4 and using PageModel .. got the Parameter value but still in data-sly-test it not working

Views

133

Likes

0

Replies

0
Re: how to get the url query string paramters value
Avatar

niks1

niks1
- Adobe Experience Manager
Thanks @anudeep_Garenepudi Yes we have Page model and i was trying to do this via :public String getlaunchEnabled() { if((request.getParameter("launchDisabled")).equalsIgnoreCase("true")) {return launchEnabled;}launchEnabled = "true";return launchEnabled;}and in htl but some how it's not workingAlso , if that value is true we should not load that file else load it . Do we have any ! function in data-sly-test

Views

317

Likes

0

Replies

0
how to get the url query string paramters value
Avatar

niks1

niks1
- Adobe Experience Manager
Hi team, I have a requirement where in we should not load the launch based on the = true parameter value. we are loading launch as below :

Views

385

Likes

0

Replies

21
Re: Image Lazy Loading in Dynamic Media Component
Avatar

niks1

niks1
- Adobe Experience Manager
Hi vanegi, I am new to AEM and as a requirement we need to implement lazy loading for all images. We are using Dynamic Media component, can you please help me if we have a feature in that.Also, we are unable to view design mode on our website. Do we need to by default set the value of lazy loading via crdxe or can be changed at run time by designers ?

Views

97

Likes

0

Replies

0
Re: Lazy Loading of Images in AEM
Avatar

niks1

niks1
- Adobe Experience Manager
have configured property in design dialog based on below. Still Lazy loading is not happening.I tried by changing value to true as well as false. But both didnt worked. Any suggestions is appreciated.

Views

536

Likes

0

Replies

0