since ‎23-11-2020
‎26-01-2021
pillaivinit
Level 1
Re: Uncaught TypeError: $(...).adaptTo is not a function
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager
@Shaheena_Sheikh The problem which I was actually facing was that, clientlib containing jquery was loading after this script hence without jquery all $ functions were not working. By main category I meant the clientlib category were jquery is kept. You can check the sequence of scripts/clientlibs loaded in the tag of the page where you are getting the error. Regarding second comment, If you have created separate clientlib with separate category and the scripts are not getting added then you sho...

Views

150

Likes

0

Replies

0
How to configure which user to use for resolving email template in ACS AEM Commons Email API
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager
I'm using AEM 6.3 and after reading this I found out thatOn AEM 6.2 or above, this service uses a Service User for repository access. This user is configured with the expected permissions required, but additional permissions may be required if your repository design deviates from the expected structure.User name: acs-commons-email-serviceACLs:jcr:read on /etc/notification/email What I want to do is use my user instead of this user. How can I achieve this?

Views

147

Likes

0

Replies

1
Request for Activation/Deactivation does not appear after denying users replication permission in useradmin
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager
So I have created this user in AEM 6.3 and I have specifically denied its replicate permission for content folder to see ho Request for Activation works. But all it does is removes the publish page option. There is no Request for activation open in the Page Information dropdown.What am I missing?

Views

226

Likes

0

Replies

3
Re: Uncaught TypeError: $(...).adaptTo is not a function
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager
Added the category as the main category and it worked. not a good answer but works.

Views

232

Likes

0

Replies

3
Uncaught TypeError: $(...).adaptTo is not a function
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager
I created a validation for a dialog in AEM 6.3Following is the code of my validation.js(function($, window, document) { var registry = $(window).adaptTo("foundation-registry"); registry.register("foundation.validation.validator", { selector: "[data-validation=txt-validate]", validate: function(el) { var element = $(el); console.log(element); var pattern = element.data('pattern'); var value = element.val(); if (value.length == 0) { console.log('No validation pattern was mentioned.') return "Pleas...

Views

245

Likes

0

Replies

4
Re: How to solve $ is not defined
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager
Sorry If I don't underdstand this I'm new. Can you please elaborate on how can I make sure it is defined?

Views

211

Likes

0

Replies

0
How to solve $ is not defined
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager
I have a js function using $ in it.My function uses $get(). and works fine when this function is called from HTL but if I add the function in document.load $(document).load(function () { alert("alert"); });then I get $ is not defined in console.Only the function which is called in HTL(Sightly) works.I'm using AEM 6.3.

Views

251

Likes

0

Replies

5
How to reuse custom Text(RTE) Component in dialog
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager
I have create a custom RTE component with my own set of plugins in AEM 6.3. It works when used on a page.Now I have a requirement top use text component in dialog where I want reuse my RTE componentReferred this blog for using default text component.I tried to use my component by writing the below code in cq_dialog xml but it doesn't work Any suggestions ?

Views

208

Likes

0

Replies

2
Hero Image component not working
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager
I have created an hero image component in AEM 6.3 which is a baked in component in a template Above is the content.html of my template. empty ${hero.title} || ${currentPage.parent.title} Above is my hero-image.html Above is my cq dialog In the dialog I'm configuring the img but nothing is happening . no image is generated while authoring. I have tried giving a static img uri still nothing.what am I doing wrong?

Views

182

Likes

0

Replies

1
Re: Using parsys in sightly for custom column control com...
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager
Thanks

Views

232

Likes

0

Replies

0
Re: Using parsys in sightly for custom column control com...
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager
Thanks a lot. But why. Can you please explain why this worked

Views

255

Likes

0

Replies

0
Using parsys in sightly for custom column control component results divs forming one inside another when published
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager
In the above code, the list contains {3,3,3,3} so that 4 col-md-3 divs form. This works in edit mode all the divs are formed in the same level. But when add text component to these 4 parsys and write something, in published Mode the divs form one inside another. I'm using AEM 6.3 . Can anyone help?

Views

289

Likes

0

Replies

4
How to add plugins in inplace editing of text component
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager
The above is my inplace editing toolbar.What I'm trying to achieve is to get all plugins available for maximized window like below in inplace toolbar without writing same code again for inplace and also to show all plugins in minimized dialog as wellI'm Using AEM 6.3Following is my cq_dialog and my cq_edit_Condfig is which refers cq_dialog for rte plugins. Any suggestions?

Views

209

Likes

0

Replies

1
Re: FileUpload needs img to upload again and again
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager
This fixed it . thanks Can you please tell me how to disable browsing files and only allow to drag n drop in coral 3 component. as it came to my attention I'm using coral 2 component.

Views

234

Likes

0

Replies

0
Re: FileUpload needs img to upload again and again
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager
using Coral 3 lets me choose while . I want drag n drop so that user cannot upload anything outside DAM. Is there a way to do this in coral3?

Views

219

Likes

0

Replies

0
Re: FileUpload needs img to upload again and again
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager
Sorry for not providing all the info. I have updated my question.

Views

235

Likes

0

Replies

0
FileUpload needs img to upload again and again
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager
 I have drag n dropped a logo from DAM and clicked save. Now when I open the dialog again, I can see that the previous link of logo is there but the dialog still needs me to add image. can anybody tell me why is this happening? why the image is not retainedI'm using AEM 6.3 and following is the dialog code

Views

402

Likes

0

Replies

10
How to access OSGI config of a built-in Service in java
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager
BasicallyI want to know what value is configured for "From" address in Day CQ Mail Service in java.so that I can use the value elsewhere.

Views

144

Likes

0

Replies

1
Re: Getting cannot derive user name for bundle and sub se...
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager
Symbolic name was the issue. I solved it before reading your answer but thanks. You were right.

Views

218

Likes

0

Replies

0
Re: Getting cannot derive user name for bundle and sub se...
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager

Views

256

Likes

0

Replies

0
Getting cannot derive user name for bundle and sub service while creating resource resolver
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager
Hi.I'm using AEM 6.3I have followed this correctly I think. and also followed Ensure authhorizableI don't know if only one is required or both are required. I'm new at this. Map params = new HashMap<>();params.put(ResourceResolverFactory.SUBSERVICE, SERVICE);ResourceResolver resourceResolver = resourceResolverFactory.getServiceResourceResolver(params) The above line is where I get the error. Have I missed something?

Views

374

Likes

0

Replies

6
Re: How to hit a servlet using selector when resourceType...
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager Assets
thanks a lot.

Views

382

Likes

0

Replies

0
Re: How to hit a servlet using selector when resourceType...
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager Assets
I have two parsys primary layout and secondary layout both the name of any one is required in url. if I use par instead of their name then I get 404.

Views

388

Likes

0

Replies

0
Re: How to hit a servlet using selector when resourceType...
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager Assets
Thanks a lot. Such a silly mistake on my part. I had another question though. since we are talking in the url we see "par" in reality I have 2 parsys with different names. Is there a way to get the servlet working in both pasrs. I mean whichever parsys the author uses

Views

405

Likes

0

Replies

0
Re: How to hit a servlet using selector when resourceType...
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager Assets
http://localhost:4502/content/my-project/homepage/profile-page/test/en/jcr:content/par/my_component.simple.html well at least I'm not getting 404 but instead my component.html file is loaded without all the css.

Views

431

Likes

0

Replies

0
Re: How to hit a servlet using selector when resourceType...
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager Assets
/content/my-project/homepage/profile-page/test/en/jcr:content/par/my_component This is what I found with resourceType as my-component. (There is jcr:content between url)

Views

442

Likes

0

Replies

0
Re: How to hit a servlet using selector when resourceType...
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager Assets
No it says A custom errorhandler for 404 responses

Views

456

Likes

0

Replies

0
Re: How to hit a servlet using selector when resourceType...
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager Assets
http://localhost:4502/content/my-project/homepage/profile-page/test/en/par/my-component.simple.html This is what I'm using. I have updated my code in question to be more realistic.

Views

469

Likes

0

Replies

0
Re: How to hit a servlet using selector when resourceType...
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager Assets
http://localhost:4502/editor.html/content/my_project/homepage/profile-page/test/en.html this is my page when I edit it and add my component. by your suggestion the url will be http://localhost:4502/content/my-project/homepage/profile-page/test/en/par/my-component.selector.extension by hitting this I'm getting 404. am I doing something wrong?

Views

480

Likes

0

Replies

0
How to hit a servlet using selector when resourceType is a component I created which is not page
Avatar

pillaivinit

pillaivinit
- Adobe Experience Manager Assets
I'm using AEM 6.3My servlet config is@Component(service= Servlet.class, property={ Constants.SERVICE_DESCRIPTION + "=Example Servlet", "sling.servlet.methods=" + HttpConstants.METHOD_GET, "sling.servlet.resourceTypes="+ "my-project/components/general/my-component ", "sling.servlet.extensions=" + "html", "sling.servlet.selectors=" + "simple" })As you can see I'm not using a page as a resourceType so I'm a little confused. Can anyone tell me what will be the url to hit on browser so it runs my doG...

Views

524

Likes

0

Replies

17