since ‎17-06-2020
Online
Anudeep_Garnepudi
MVP
Re: how to get the url query string paramters value
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
One observation is if it is data-sly.test the it should be data-sly-test. replace .test with -test and check.

Views

10

Likes

0

Replies

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

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
Updated above code is working as expected for me.

Views

19

Likes

0

Replies

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

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
Logic should be public String getLaunchEnabled() { if (request.getParameter("launchDisabled") == null) return "true" ; return request.getParameter("launchDisabled"); } right. You code just checking null not returning the actual parameter value.

Views

34

Likes

0

Replies

0
Re: Export packages are missing in Manifest.MF Header
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
It should not be in Private-Package, it should be in Export-Package

Views

9

Likes

0

Replies

0
Re: Export packages are missing in Manifest.MF Header
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
@s1101v Check you package is under Private-Package, in bundle manifest. If so add package info(package-info.java) to your package and see.

Views

36

Likes

0

Replies

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

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
@niks1 Updated the code and HTL above. I see in your Sling Model the method name is wrong. It should be "getLaunchEnabled" instead of getlaunchEnabled. L should be caps.

Views

65

Likes

0

Replies

0
Re: fetch window URL and verify using data-sly-test
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
@Shaheena_Sheikh You want load scripts based on runmodes like author/publish or edit/non-edit mode?My suggestion is to have a edit mode check. (OR) If you want runmode specific, there are so many beautiful examples down below in replies.

Views

29

Like

1

Replies

0
Re: How to identify if URL contains editor.html in Sightly
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
@saukaush What is version of AEM? Did you try ${slyWcmHelper.mode.edit}? Give a try.

Views

45

Likes

0

Replies

0
Re: Event listener property used to trigger a function on...
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
@Helen_DD Use activate event. The event will be called with panel as parameter.

Views

34

Like

1

Replies

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

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
@niks1 If you want to compare Strings then ${varOne == varTwo} returns true if varOne and varTwo are equal. Or try changing launchEnabled type from String to boolean. Check the docshttps://experienceleague.adobe.com/docs/experience-manager-htl/using/htl/expression-language.html?lang=en#comparison-operatorsTry: ...

Views

105

Likes

0

Replies

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

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
@niks1 Instead of query parameter, use selector and get the selector value using ${request.requestPathInfo.selectorString}. If you already have a Sling Model for the current resource, get the parameter value from request.Sling Model: @Self SlingHttpServletRequest request; public String getLaunchEnabled() { if (request.getParameter("launchDisabled") == null) return "true"; return "false"; } HTL: Launch Enabled

Views

121

Likes

0

Replies

9
Re: JSOUP not getting resolved
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
You don't need to add in Import-Package, add it in Export-Package and try once

Views

28

Likes

0

Replies

0
Re: JSOUP not getting resolved
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
@s1101vDid you remove Embed-Dependency? If no remove it. Add remove system scope also. Check in Exported Packages list.

Views

55

Likes

0

Replies

0
Re: JSOUP not getting resolved
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
@s1101v In Export-Package add org.jsoup.*, it should work. org.jsoup jsoup 1.9.2 org.jsoup.*

Views

65

Like

1

Replies

4
Re: Replication
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
@rk39193348 Are you able to publish the page manually? The code that you shared seems ok.

Views

20

Like

1

Replies

0
Re: Creating a Newsletter Pop Up
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
@kushal_srivastava I don't think there is anything such OOTB. I suggest to create a custom component(if content is authorable). Use Intersection Observer to show the content on scroll. Below is API documentation.https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API

Views

43

Like

1

Replies

0
Re: colorfield and datasource
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
Welcome 🙂

Views

48

Likes

0

Replies

0
Re: colorfield and datasource
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
@Shaheena_Sheikh It is not like we are creating option nodes from Javascript. AEM will read the dialog nodes and will generate HTML markup from backend and also Javascript APIs provided to generate it from the frontend. You just need a parent node that should be coming from backend, we can inject options from frontend.

Views

57

Likes

0

Replies

0
Re: Updating OOTB DAM Asset Workflow
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager Assets
Because of repository restricting in 6.5. Check link https://experienceleague.adobe.com/docs/experience-manager-64/developing/extending-aem/extending-workflows/workflows-best-practices.html?lang=en#customization

Views

37

Likes

0

Replies

0
Re: Updating OOTB DAM Asset Workflow
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager Assets
@aembeginner1 You can update the OOTB DAM UPDATE ASSET workflow and add you custom thumbnail size.Tools > Work Flow > Models > DAM Update Asset > Select > Edit > Process Thumbnails > Thumbnails Tab > Add > 640:640:false > submit > syncNow go to /conf/global/settings/workflow/models/dam/update_asset/jcr:content/flow/thumbnailprocess/metaData and check CONFIG value.

Views

49

Like

1

Replies

2
Re: colorfield and datasource
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
Try one thing, put a console.log in for loop and see what all options are injecting, only new or old + new

Views

86

Likes

0

Replies

0
Re: colorfield and datasource
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
Should clear options before injecting, check optionItems.clear(); is added in your script.

Views

99

Likes

0

Replies

0
Re: colorfield and datasource
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
@Shaheena_SheikhAre you calling that change function in dialog load as well?$(".cq-dialog").find("#country").on("change", setCitiesOptions); // Onchane Event setCitiesOptions(); // Call the set options function on dialog load If now calling setOptions function onload, try calling it.

Views

116

Likes

0

Replies

0
Re: AEM Cloud toggle Side Panel is missing
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
@bmohanty I can see the side panel.

Views

49

Like

1

Replies

1
Re: colorfield and datasource
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
Hi @Shaheena_Sheikh, cities is id of the field (add granite:id property to your dropdown) and .cq-dialog is dialog selector which is common for all components dialogs which will come from dialog.jsp

Views

141

Likes

0

Replies

0
Re: colorfield and datasource
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
Yes, it should work. You can hardcode the JSON in your JavaScript file if the JSON will be updated only by developer.

Views

158

Likes

0

Replies

0
Re: colorfield and datasource
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
@Shaheena_Sheikh Check my post, might help.https://adapttoaem.blogspot.com/2021/02/setting-dynamic-dropdownselect-value-in.html

Views

178

Likes

2

Replies

15
Re: Adding secure attribute to cookie
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
@Shaheena_Sheikh You can set HttpOnly and Secure flags to cookie. Check the below Cookie API documentation. Use setSecure(boolean flag) and setHttpOnly(boolean isHttpOnly).https://docs.oracle.com/javaee/6/api/javax/servlet/http/Cookie.html

Views

73

Likes

2

Replies

0
Re: Fetching Parent Page Properties from Experience Fragm...
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
@rajaram33 To get current page properties, you can use pageProperties object in any of the component. All the properties of current page will be set pageProperties global object while sling resolves the resource and will be passed along all the resources in the page.To get inherited pages properties, you can use inheritedPageProperties object. You can directly use these objects in HTL or can inject in Sling Model.

Views

64

Like

1

Replies

0
Re: Fetch node property value of asset whose Properties p...
Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
- Adobe Experience Manager
Hi @Shaheena_Sheikh, If you want to get the meatadata node values just use /_jcr_content/metada in place of .infinity. I have updates my answer above check.

Views

73

Likes

0

Replies

0
Likes given to