Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Ritesh_Mittal
Community profile Ritesh_Mittal Community Advisor
Solution Architect
Bangalore
23 BADGES
Community Advisor

Community Advisor

Learn more
Joined the community 28-08-2013 10:13:32 PM
Online
Top badges earned by Ritesh_Mittal
Customize the badges you want to showcase on your profile
Re: How to add multiple CTA on different tabs in cq dialog of a component?
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @surenk , I am assuming your Sling Model object is 'primaryctaModel' and 'secondaryctaModel', where you have put getters for the objects, whereas you are trying to get object value using primarycta and secondarycta. Have you tried putting debugger in the Sling Model and see if the values are being populated fine. since you are storing both CTA title as comma separated, so again assuming the separation logic is there in Sling Model.

Views

114

Likes

2

Replies

0
Re: What kind of components to have in content & structure folder
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @DuttAbhishek , Let's understand what we really do when we design and create a new page- 1. We split the page in to sections (Header/Footer/Carousel/Image/Image-text, etc).2. Each split section becomes a functional component. You can put functional components under 'content' folder since those are to create content on your page.Now we have the components but we need a page layout where we are going to put those components, isn't it? Which we call as template. If you want to create component t...

Views

95

Likes

3

Replies

1
Re: Difference bw these two urls
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @Preeti5 , Lets understand the resource resolution concept, by default the sling looks for any script under '/apps' and then '/libs' (of course if you have not modified "Apache Sling Resource Resolver Factory"). Now when you specify resource path, that can be 1. Absolute path - means you will specify either /apps* or /libs* path2. Relative path - you do not append anything (/apps or /libs) and let Sling do its job Now, why it is recommended to use relative path, just consider you have used /l...

Views

79

Likes

2

Replies

0
Re: infinity.json in publish instance
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @Rohit_Negi550 , Have you tried different browsers? Also, do you see any response data in the network tab where you see the 200 response code? I believe you must have tried restarting the sever. One more thing, just try to uninstall your project specific modules and see if it works, also check the error log when you access the infinity.json, any error if you find.

Views

123

Like

1

Replies

2
Re: Enabled minifaction in AEM6.4 seems not be working
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @Magicr , I see there might be an issue with your configuration. There is no languageIn as 'Javascript' as you have specified in "JS Processor Default Configs" property. Also, check if your script is having some issue Check here to minimize -https://www.freeformatter.com/javascript-minifier.html Check this thread, almost same issue.https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-6-5-2-js-files-are-not-minified-with-gcc-and-yui/td-p/362173

Views

151

Like

1

Replies

1
Re: Need help to in optimization an existing query
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @Abhishekty , If the frequency of query being executed is high then we must go for indexing, else the query runs for entire content. you can check-https://experienceleague.adobe.com/docs/experience-manager-65/deploying/deploying/queries-and-indexing.html?lang=enhttps://hashimkhan.in/2018/03/12/improvise-the-search-index/

Views

208

Likes

2

Replies

0
Re: Disable default microservices for Assets in AEM cloud
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @parthibanselvam , I hope this thread explains the same issue-https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-assets/dam-upload-asset-overrides-the-dc-title/m-p/223181 https://www.pdfa.org/wp-content/until2016_uploads/2011/08/pdfa_metadata-2b.pdf

Views

130

Like

1

Replies

0
Re: SessionStatistics show no Stack Traces AEM 6.5.8
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @sdouglasmc , As @Asutosh_Jena_ mentioned its most probably because of resource resolver object not being closed. I will suggest to use try-with-resources statement, that way you will never have them opened.Your second question is related to sharing author instance credentials among team members? I would say, even if the application/product supports it, we should NEVER share credentials with anyone otherwise it will break the whole purpose of authentication and accountability.Cheers!

Views

125

Like

1

Replies

0
Re: Old JS and CSS served under new name after deployment
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @Alexander_Prikhodko , Are you facing this issue even after deployment, with new hash appended in JS URLs and still you see the old script loaded, that is quite odd since changing hash means it is not coming from cache and should give you latest code. Are you facing this issue on publish (non dispatcher URL) too. Also, are you setting any long TTL on your apache server. Does your deployment process covers dispatcher cache flush as well?

Views

189

Like

1

Replies

1
Re: Inheriting component to all child pages
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @Shaheena_Sheikh , Why cant you use the template and add it over there. why do you have that restriction, that is one of the purpose of template.

Views

100

Like

1

Replies

0
Re: Searching in specific order
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @aembytes , You can create custom predicates for that. You can use orderBy predicate with desired property and can join the results. Also, you can boost a specific property and give desired value to have order in place. https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-fulltext-search-result-order/td-p/320837https://github.com/paulrohrbeck/aem-links/blob/master/querybuilder_cheatsheet.md

Views

160

Like

1

Replies

0
Re: DAM asset got 302 redirection on Publisher
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @Inzali , Since 302 is temporary redirect, have you written any custom rewriter (you must find a configuration under your project something like /apps/myproject/config/rewriter) and transformer and may be have enabled it for specific run-modes. Because this can be another way to have redirects other than etc/map and 'Apache Sling Resource Resolver Factory'. Please check the video for the above explanationhttps://www.youtube.com/watch?v=0fM2vUEj2bAhttps://www.youtube.com/watch?v=0fM2vUEj2bA ht...

Views

75

Like

1

Replies

0
Re: How to setup a site down (maintenance page) for cloud AEM?
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @TB3dock , The best and ideal way to have the custom error handler if you want to have have dynamicity, means which validates if any service is down or during maintenance is through following below documentation https://experienceleague.adobe.com/docs/experience-manager-cloud-service/implementing/developing/full-stack/custom-error-page.html?lang=en You can make a switch to enable/disable it via a custom page/page property, where business/users can change it and the same property value you can...

Views

114

Like

1

Replies

1
Re: AEM 6.5 multiple Sling event handlers ; same topic
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @NitroHazeDev , You would not want to fire unnecessary event invocations so you should filter for project specific paths. Use path filter, and that should be ideal and good approach and it will also make sure that there will be no overlap/override. https://github.com/riteshmittal/aemscheduler-even-handling/blob/main/EventHandlerExample.java

Views

86

Likes

2

Replies

1
Re: Integration Test with Content Fragments - How can I create a Content Fragment?
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @marie_p_h , I missed to add the method, please see it below-public ResourceResolver getResourceResolverForPage(String name) {ResourceResolver resourceResolver = null;try {Map param = new HashMap<>();param.put(ResourceResolverFactory.SUBSERVICE, name);resourceResolver = resolverFactory.getServiceResourceResolver(param);} catch (Exception e) {}return resourceResolver;}

Views

138

Like

1

Replies

0
Re: Integration Test with Content Fragments - How can I create a Content Fragment?
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @marie_p_h , While creating unit tests for any Content Fragment business logic, we do not create the actual CF but we mock the resource to CF using Mockito.when. Check below example https://github.com/adobe/aem-core-wcm-components/blob/master/bundles/core/src/test/java/com/adobe/cq/wcm/core/components/internal/ContentFragmentUtilsTest.java Though, for actual CF creation for any functionality you can use Content Fragment Server side API, like below Imports -import com.adobe.cq.dam.cfm.ContentF...

Views

148

Like

1

Replies

2
Re: ACS-Commons "Send Templated Email" process: "could not resolve to a valid template" Error
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @chitranshs90502 , Are you able to see /apps/workflows/templates/email-templates/send-to-approver.txt through CRXDE? Also, check if your system user has access to the template path, If you are getting the above error while backend execution.

Views

132

Likes

2

Replies

1
Re: Not able to re-establish the salesforce connection from AEM cloud services after upgrading to aem 6.5
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @Sudhansu_acharya1 , It looks like access token issue. Check the below thread. Hope it helps!https://www.albinsblog.com/2017/04/integrationofaemcq5withsalesforcepart2.html#.YScXf44zY2w

Views

66

Likes

2

Replies

1
Re: Asset Migration between environments in AEM as a Cloud Services
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @chagani , You can use Content Transfer Tool for this. BTW, do you see any challenge with package manager?https://experienceleague.adobe.com/docs/experience-manager-cloud-service/moving/cloud-migration/content-transfer-tool/using-content-transfer-tool.html?lang=en Also, check the below thread-https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/content-synchronization/td-p/419029

Views

53

Like

1

Replies

0
Re: AEM Multitenant Sites Session Managment
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @sam2k8 , If your multiple sites are sharing same platform, which I believe they should be then its not possible.

Views

78

Like

1

Replies

0
Re: Unable to load the migrated node properties in AEM dialog
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @kiranv40650953 , Just check when you are authoring and saving the values, are they being saved with same property names (I mean are they overriding the existing migrated values or creating new property names or creating new nodes) or do you see any new property/node generated, or any other change.

Views

81

Likes

2

Replies

1
Re: Servlet path error: Resource at '/content/forms/af/geometrixx-gov/application-for-assistance/jcr:content/guideContainer.af.internalsubmit.js' is not modifiable
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @P_V_Nair , This happens when the URL is not accessible. Check 'Apache Sling Servlet/Script Resolver'. Also, check the permission on the JS, is it accessible for the user since it is a POST call.

Views

136

Likes

2

Replies

0
Re: Difference between jcr:primaryType being nt:folder Vs jcr:primaryType being sling:MessageEntry while creating i18n keys
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @SHIBANI06 , If you see the Apache documentation then you will find that for language folder - example en, de, fr, etc jcr:primaryType = nt:folderjcr:mixinTpes = mix:language And for each messages (for which you want to put language specific value) jcr:primaryType = sling:MessageEntry sling:key sling:message. https://sling.apache.org/documentation/bundles/internationalization-support-i18n.html

Views

127

Like

1

Replies

2
Re: Adobe Analytics implementation in AEMasCS
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @NIshantSaurabh25 , I have created a playlist which gives step by step explanation for creation of custom data layer and analytics configuration. Hope it helps! https://www.youtube.com/watch?v=mfec11wg_Dw&list=PLzwWOJSdKWBeBfceV2chFhpIxFdRYOt-C

Views

85

Like

1

Replies

0
Re: Dropdown componenet issue
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @mudaliar847906 , Its an Angular JS behavior. You need to put initial value in your controller, like below$scope.form.type = $scope.typeOptions[0].value; See the threadhttps://stackoverflow.com/questions/12654631/why-does-angularjs-include-an-empty-option-in-select Just try this example, here also you will see empty optionhttps://www.w3schools.com/angular/tryit.asp?filename=try_ng_select Code snippet Choose your numbervar app = angular.module('myApp', []);$scope.form.type = $scope.typeOptions[0].value;app.controller('myCtrl', function($scope) {$scope.names = ["One", "Two", "Three"];});

Views

100

Likes

2

Replies

0
Re: changing etc maps location in resource resolver factory breaks pages
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @mkaem , Since you are able to access system/console, have you tried reverting your change and see if that resolves the issue or deploying the previous version code is fixing the issue? Also, check which bundles are not in active state.

Views

121

Like

1

Replies

1
Re: Reverse Replication of Users
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @NitinTA , You can use Sling Content Distribution for that, and can use Apache Sling Distribution Trigger' for that. https://www.youtube.com/watch?v=5n45O5DMne4https://www.youtube.com/watch?v=z6nf2QSUM8k Distribution between Publish instances is also possiblehttps://www.albinsblog.com/2020/08/sling-content-distribution-in-aem-sync-content-between-publish-instances.html#.YSO9EI4zY2w

Views

109

Like

1

Replies

2
Re: problem in uploading the package
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @satishpothabathula , There is a thread for similar kind of issue-https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/folder-handler-did-not-accept-xxx-js-500/td-p/287104

Views

90

Likes

2

Replies

0
Re: How to restrict number of component
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @saurabh_kumar_02 , To achieve maximum number client side validation, you have to add custom script, which I would not recommend because of maintenance of backward compatibility for future component updates. Instead of that you can display an author friendly message in authoring mode while author configures the component to suggest/warn that the component works better for max 3 components. You will find a details description in below video-https://www.youtube.com/watch?v=675WXqyGeII Hope it h...

Views

158

Like

1

Replies

0
Re: ASK Published URL function
Avatar
Boost 5
Community Advisor
Ritesh_Mittal
Community Advisor

Likes

223 likes

Total Posts

172 posts

Correct reply

52 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_Mittal
- Adobe Experience Manager
Hi @kaorut , Please explain the business requirement for this, may be then should be able to help more. Published URLs (short URLs or the end site URLs) are dynamic in nature and depends on business decision. For example - https://:/content/mysite/en/home.html can be shortened to www.mysite.comwww.mysite.com/home.htmlwww.mysite.com/homewww.mysite.com/itsmypagename, and so on Nevertheless, in case you want to store the URL on page, you can create custom page properties, workflow process, and ther...

Views

121

Like

1

Replies

0