since ‎05-01-2015
‎25-08-2020
viveksachdeva
Level 5
Re: AEM SPA Routing Issues with hash and query parameter viveksachdeva - Adobe Experience Manager
The URL modification happens at client side before it reaches Dispatcher. For "#" in the URL, we were facing this issue consistently but query params, it was intermittent.
134
Views
0
Likes
0
Comments
Re: AEM SPA Routing Issues with hash and query parameter viveksachdeva - Adobe Experience Manager
We are doing like similar to https://helpx.adobe.com/experience-manager/kt/sites/using/getting-started-spa-wknd-tutorial-develop/react/chapter-3.html... Does it really matter how we populate the URL.. It is just a JSX variable and it is populated on what author puts in the component. When I say automatically, I mean whenever we pass a URL to React Link, AEM automatically makes a call to model.json of the link specified in to attribute. There isnt anything in componentDidMount.. We just get props...
2362
Views
0
Likes
0
Comments
Re: AEM SPA Routing Issues with hash and query parameter viveksachdeva - Adobe Experience Manager
It is happening while routing from one page to another.. cq:pagemodel_root_url always has root page URL and not current page URL. And we are not using custom code to load page model json. Its just a Link tag with a URL and that automatically calls model.json internallyLabel
2376
Views
0
Likes
0
Comments
Re: AEM SPA Routing Issues with hash and query parameter viveksachdeva - Adobe Experience Manager
That part is maintained in header and header doesnt change when we navigate between the pages. and it points only to root page which is fine..
2391
Views
0
Likes
0
Comments
Re: AEM SPA Routing Issues with hash and query parameter viveksachdeva - Adobe Experience Manager
Yes I am using extensionless URLs. Its not really an issue with Apache rewrite because the model.json request that is generated from the browser itself is incorrect(adding mode.json after full URL rather than just the path)).
2413
Views
0
Likes
0
Comments
Re: AEM SPA Routing Issues with hash and query parameter viveksachdeva - Adobe Experience Manager
Its Client side..
2465
Views
0
Likes
0
Comments
AEM SPA Routing Issues with hash and query parameter viveksachdeva - Adobe Experience Manager
Hey guys, We are using AEM with React and having trouble with SPA Routing. We are facing an intermittent issue when the Link contains # or ?Page data is available using .model.json on the page URI but sometimes when we have # and ?, model.json is added after full URL rather than just path and hence it fails.And it happens when on dispatcher only when we dont have .html in the URL.E.g:Lets say a React Link points to /en/mypage?cid=campaignI expect data call for this to be /en/mypage.model.json bu...
2987
Views
0
Likes
12
Answers and Comments
Re: Upload and Build package failing in Chrome viveksachdeva - Adobe Experience Manager
I got granite hot fix for 6.5 and the issue is fixed now
1073
Views
0
Likes
0
Comments
Re: Upload and Build package failing in Chrome viveksachdeva - Adobe Experience Manager
Sorry dint get it.. So this a change in ext JS independently, right? How do we make the same change in AEM. Any hotifix/package available for this? @aemmarc
3303
Views
0
Likes
0
Comments
Re: Upload and Build package failing in Chrome viveksachdeva - Adobe Experience Manager
Argh.. this is so irritating.. Chrome is always my default browser.. Will try degrading it I guess, if I dont find a solution
2391
Views
0
Likes
0
Comments
Upload and Build package failing in Chrome viveksachdeva - Adobe Experience Manager
Hi,While uploading/building/any other operation on package manager, I see following JS error in the console and hence it gets stuck.Anyone faced this issue on any browser?It works in Safari though. Chrome Version : Version 83.0.4103.61 (Official Build) (64-bit) Even OOTB pacakge installation is not wokring:29.05.2020 01:04:46.951 *INFO* [qtp1661131386-2036] com.day.crx.packaging.impl.SlingInstallerSupportImpl Sling installer node /system/sling/installer/jcr/pauseInstallation/de790995-cf96-44dd-8...
6247
Views
0
Likes
11
Answers and Comments
Re: Author component inside pure React component viveksachdeva - Adobe Experience Manager
I doubt you can because it needs extending class..
1707
Views
0
Likes
0
Comments
Re: Customize/Hook to AEM copy-paste component flow viveksachdeva - Adobe Experience Manager
You can refer to https://sling.apache.org/documentation/tutorials-how-tos/how-to-manage-events-in-sling.html .. Listen to event TOPIC_RESOURCE_ADDED... and then have a Sling Job Processing it.. https://www.tothenew.com/blog/aem-robust-sling-eventing-using-sling-jobs/
1599
Views
0
Likes
0
Comments
Re: Author component inside pure React component viveksachdeva - Adobe Experience Manager
We had same struggle when started working on AEM + React. Some of the pain points:- Container components --> Include Parsys/Layout Grid within a component for complex components like -- Tab, Accordion, etc- Experience Fragment --> OOTB experience fragment doesn't allow authoring of React Components Without these features, the dialogs becomes quite messy and not really flexible/reusable. Form my learnings, here is what you can try for container components: If your parent component doesn't have an...
2212
Views
1
Like
4
Answers
Not able to embed iframe from different domain viveksachdeva - Adobe Experience Manager
Hi, I have a chatbot which I need to embed in on my page using iframe. The chatbot is hosted on a different domain. Whenever I embed it using iframe, I am getting error : "Refused to display ... in a frame because it set 'X-Frame-Options' to 'deny'." I tried setting X frame policy in Sling Main Servlet to Allow from this domain but it shows "'ALLOW-FROM' is not a recognized directive. The header will be ignored." Any suggestions on how I can achieve this? Thanks in advance
958
Views
1
Like
1
Answers and Comments
Re: Live copy updated even if we cancel inheritance viveksachdeva - Adobe Experience Manager
I also faced same issue. Ended up writing custom live action to fix my issue..
1853
Views
1
Like
0
Replies
Re: Field Level cancelled Inheritance getting lost on rollout viveksachdeva - Adobe Experience Manager
So just to post an update here.. I could not find any configuration to fix this up. So I wrote my custom live action to accomplish it and it works fine with that
3112
Views
0
Likes
1
Replies
Field Level cancelled Inheritance getting lost on rollout viveksachdeva - Adobe Experience Manager
I have enabled field level inheritance for a dialog. After creating live copies, I cancelled inheritance for a few fields. On rolling out changes from Blueprint page using Blueprint control center, these fields with cancelled inheritance got reverted and they have lock icon back again. I expected the fields with cancelled inheritance to stay as is.Anyone else faced same issue?TYIA.P.S. : Its with version 5.6
3267
Views
1
Like
2
Replies
Re: Query to get count of pages on which an image is used viveksachdeva - Adobe Experience Manager
The query you used looks only in property called image.. "References" in DAM does exactly what you are looking to do http://localhost:4502/bin/wcm/references?_dc=1525242342217&_charset_=utf-8&path=%2Fcontent%2Fdam%2Fgeometrixx-outdoors%2… and gets all references.. Does this help?
808
Views
1
Like
0
Answers
Re: Add more formats in rtePlugin - paraformat viveksachdeva - Adobe Experience Manager
Possible to share code package that you are using... I see it working when I followed the article above
14361
Views
1
Like
0
Replies
Re: Custom event not firing viveksachdeva - Adobe Experience Manager
Possible to share github repo for what you are trying ?
916
Views
1
Like
0
Answers
Re: Need java code to convert the page names to lower case viveksachdeva - Adobe Experience Manager
You can use something like code below:resourceResolver.getResource("/content/geometrixx").listChildren().each { Node node = it.adaptTo(Node.class) node.getSession().move(node.getPath(), node.getParent().getPath() + "/" + node.name.toLowerCase()); // node.getSession().save(); }P.S. : When you change node name, any place that you were referring it on also needs to change...
1264
Views
1
Like
0
Answers
Re: Migrating Select Content Between AEM Instances in Different Environments viveksachdeva - Adobe Experience Manager
You could post you issues in grabbit github repo.. From what I know that is the fastest of available options and easy to automate. So worth a try to see it your issue can be fixed.
1031
Views
1
Like
0
Replies
Re: Show pages (restricted) with lock icon. viveksachdeva - Adobe Experience Manager
From what it seems, your use case can be solved using CUG : Closed User Groups in AEM 6.3 Setting up a policy and applying it on the specific pages should take care of it..
993
Views
0
Likes
0
Answers
Re: How do I reference an OSGi bundle in my Java class or POM file? viveksachdeva - Adobe Experience Manager
Wrapping JAR into as OSGi bundle is one option but not the only one. I find the maven way better as it is lesser of manual effort and I get the flexibility of using dependency private to the bundle or exposing it.himanshusinghal​ : I was referring to the changes that one needs to make in maven-bunle-plugin.. Apache Felix - Apache Felix Maven Bundle Plugin (BND) What you mentioned looks to be a different way of doing it.. Do you have sample code/github link that you can share. Good to know more w...
1015
Views
0
Likes
0
Answers
Re: How do I reference an OSGi bundle in my Java class or POM file? viveksachdeva - Adobe Experience Manager
I agree with the options but I guess the code snippet in incorrect
960
Views
0
Likes
0
Answers
Re: Best Practices for AEM performance viveksachdeva - Adobe Experience Manager
Not sure what you mean by local but there are options other than dispatcher.. You could use CDN for caching images/videos that helps improve performance.. Akamai, Cloudfront are some options.
914
Views
0
Likes
0
Answers
Re: Adding Data in JCR Repository on Dragging of Component viveksachdeva - Adobe Experience Manager
Use cq:template node for this.. Here is a blog that explains just that thing very precisely . Using the cq:template file | 6D Labs
2178
Views
0
Likes
0
Replies
Re: Missing jcr:content node on the page. viveksachdeva - Adobe Experience Manager
You should not publish a child page if parent parent doesnt exist on publish. It creates issues. The one that you mentioned regarding jcr:content node not being created, it causes problems. I have seen it in 5.6 but I think it could be same in 6.x as well. Take a look at KeEp cAlm & just cOdE it! : New Page/Site or Page Properties for a page disabled from siteadmin? for details...
1167
Views
0
Likes
0
Answers
Re: How to get content from components in jcr viveksachdeva - Adobe Experience Manager
I believe you need to write a query which should have following things:- path : root from where you want your search- ORing of all expected resource types(I believe this one is better than using node name like highlight/image,etc)This will give you list of all such nodes and you can perform whatever operation there on
886
Views
1
Like
0
Answers