since ‎08-04-2015
‎10-12-2019
JoseBerciano
Level 2
Re: How do I determine current mode client side JoseBerciano - Adobe Experience Manager
Hi all,I was testing the snippet pointed out here on AEM 6.3 and could not get it to work?The 'cq-layer-activated' event is either not getting triggered when changin from 'Preview' to 'Edit' and viceversa or the code is not picking it up corretly.Can anyone shed some light on this? I would like to be able to catch whatever event is sent when a view is activated and run some JavaScript code.Regards.
1206
Views
0
Likes
0
Answers
Reusable OSGi implementations JoseBerciano - Adobe Experience Manager
I came across this architectural challenge, which is maintaining all shared business Java logic in a separate Common-Project that includes some common API in a bundle Common-Bundle and also a Common-Bundle-Impl that provides the shared implementation for that general API.The issue here is that sharing the implementation, therefore exporting the impl package, violates one of the OSGi best practises: you should never export implementation packages to consumers.I will try to explain it with an exam...
474
Views
0
Likes
1
Answers and Comments
Re: Including com.fasterxml.jackson dependency - Causing errors JoseBerciano - Adobe Experience Manager
Currently facing the same issue here in AEM 6.3 as mentioned in the first post.com.fasterxml.jackson.databind,version=[2.9,3) -- Cannot be resolvedI am using the following dependency in my parent pomcom.fasterxml.jackson.corejackson-databind2.9.1Downloading the package jackson-databind-2.9.1.jar and installing via package Install/update seems to be fixing the issue, although I was hoping to automate this process in the Maven buildI tried but I could not get it to work.Any suggestions?
3456
Views
0
Likes
1
Replies
Re: Publish/unpublish history JoseBerciano - Adobe Experience Manager
@Veena_07 and @Diego_Fontan thanks for you replies.This is not quite what I am looking for. Yes, when publishing a page AEM generates a version of it, but lets say I have 10 pages, 5 unpublished, 5 published. I make changes to all of them, and publish these 10 pages.What I am looking for is to restore the previous state in which 5 of them were unpublished. But this info, which one were unpublish is unknown.Does that help to understand my initial question?Thanks.
774
Views
0
Likes
0
Answers
Publish/unpublish history JoseBerciano - Adobe Experience Manager
HiIs there any way of checking if a page was unpublished before it was published? I took a look to the restoring tools but I could not find a way of telling if a previous version of a page was actually published or not.Regards,Jose.
2637
Views
1
Like
6
Answers and Comments
Re: minifying JS and CSS in 6.2 causing errors JoseBerciano - Adobe Experience Manager
Just giving you an update with my workaround to this.AngularJS needs to be coded in a certain way in order to be able to be minified otherwise the code breaks, as explained very well in this video AngularJS Dependency Injection And Minification - YouTubeIn a nutshell, I created a new config file for production environment under/apps/myproject/config.prod/com.adobe.granite.ui.clientlibs.impl.HtmlLibraryManagerImpl.xml and set the valuehtmllibmanager.processor.js="min:gcc" Aside from that I use gu...
1572
Views
1
Like
0
Answers
Re: wcm/foundation/components/iparsys vs. foundation/components/iparsys JoseBerciano - Adobe Experience Manager
I just came across this bug in AEM 6.3.I wanted to have an editable template with iparsys for both header and footer, but apparently the policies I set do not apply after saving the changes.Any updates on this?
1050
Views
0
Likes
0
Answers
Re: minifying JS and CSS in 6.2 causing errors JoseBerciano - Adobe Experience Manager
Thanks Feike, changing to gcc makes the clientlib to be compiled without problems.Unfortunately, the minification breaks my code:clientlib-base.min.a5dee06….js:7 Uncaught Error: [$injector:modulerr] Failed to instantiate module myapp.app due to:Error: [$injector:unpr] Unknown provider: phttp://errors.angularjs.org/1.6.5/$injector/unpr?p0=p at http://localhost:4503/etc/clientlibs/myapp/clientlib-base.min.a5dee066c92fe7ac2ccc76cf9a0828ca.js:7:73 at http://localhost:4503/etc/clientlibs/myapp/client...
1573
Views
1
Like
0
Answers
Re: minifying JS and CSS in 6.2 causing errors JoseBerciano - Adobe Experience Manager
I just came across this issue in AEM 6.3 and I can confirm it is still reproducible.From Angular 1.6.0 onwards the YUI compressor does not like some of the syntax and it simply fails when compressing, for any previous AngularJS versions it works fine.I just verified the AngularJS code against Refresh-SF - Online JavaScript and CSS Compressor I guess we will have to put a reference to the CDN link instead of adding the framework to our client libs? It does not seem to be a nice way of dealing wit...
1563
Views
1
Like
0
Answers
Re: a tag properties lowercased by default JoseBerciano - Adobe Experience Manager
I eventually found a workaround by implementing a Sling Rewriter. It might not be the best approach, but since I wasn't able to find an 'easy' way of doing this (I hoped to find some OSGi bundle config that allows to configure this) it is good enough for me.Some links that helped:java - AEM: links transform/rewrite in a page - Stack Overflow Mastering the Sling Rewriter
610
Views
0
Likes
0
Answers
Re: a tag properties lowercased by default JoseBerciano - Adobe Experience Manager
Hi MC Stuff,thanks for you reply. Are you sure sightly is the one that converts these properties into lowercase?I mean, my HTML tag is not and I actually tested this in CQ 5.6.1 without sightly and was still converting to lowercase...
615
Views
0
Likes
0
Answers
a tag properties lowercased by default JoseBerciano - Adobe Experience Manager
AEM has some logic behind the tag in which all properties put inside are lowercased, E.g.In a JSP file:gets processed and transformed into this:which makes some front-end frameworks not work properly.I tested this in CQ5.6.1 and AEM6.3 so I guess this issue has been around for a while for more people than just me, although I could not find any help or article pointing out proper workaround.Any help would be much appreciated,Regards.
1541
Views
0
Likes
3
Answers and Comments
Re: IMMERSE 2017 - Community Input JoseBerciano - Adobe Experience Manager
I was wondering if the sessions are available to check online already?I could only find the ones from last year Immerse On Demand Recordings
7842
Views
1
Like
16
Replies
Re: Parsys displays with 0 width JoseBerciano - Adobe Experience Manager
Thanks smacdonald2008 and bsloki for your help, really appreciated.I discovered the issue was effectively specific to the css created for those pages as I tested my component in a different project and worked just fine.I could not figure out which css property was the one breaking the placeholder layout, but after 3 exhausting days I considered this work around good enough to fix the issue: .row .column .parsys, .row .column .parsys div{ width: 100%; }Cheers.
726
Views
0
Likes
0
Answers
Parsys displays with 0 width JoseBerciano - Adobe Experience Manager
Hi everyone, I am struggling a bit with this issue, hopefully someone can give a hand.So I created a component that displays 2 columns with a parsys on each one of them. For some reason these parsys are being displayed with 0 width:When I inspect the generated HTML for the component I can see this:cq5 adds a with the actual parsys placeholder, though these elements have 0 width.What it is even more odd, if I edit the HTML with Chrome and remove that div, cq5 is rendering it again but now with t...
1256
Views
0
Likes
3
Answers and Comments
Best way to deliver incremental releases JoseBerciano - Adobe Experience Manager
Hi everyone,I have inherited a project in which they way release versions are delivered is a little bit iffy: Developers identify the files they have changed with respect to the previous release, then they MANUALLY create a package in Package Manager by adding all the filters one by one. The reason they have been doing this is because another department is in charge of releasing that new content to live version (and it will be like that for now)On the other hand, I checked the package size creat...
487
Views
1
Like
2
Answers and Comments
Re: Twitter Bootstrap breaking Classic OOTB dialogs JoseBerciano - Adobe Experience Manager
That helped a lot Lee, thanks so much.It did not fix everything though, I had to override some more CSS: #CQ * { box-sizing: content-box; } legend { width: auto !important; -webkit-padding-start: 2px; -webkit-padding-end: 2px; border-style: none; } It seems to be fixed now.
701
Views
0
Likes
0
Answers
Re: Twitter Bootstrap breaking Classic OOTB dialogs JoseBerciano - Adobe Experience Manager
OK thanks for your help Kautuk.I will let you know as soon as I get the issue solved.
583
Views
0
Likes
0
Answers
Re: Twitter Bootstrap breaking Classic OOTB dialogs JoseBerciano - Adobe Experience Manager
Hi Scott, any luck with that?I would not mind to use a previous version of Bootstrap either, though I already tested with version 2.2.1 and same result: dialogs CSS layout is broken always.Cheers.
585
Views
0
Likes
0
Answers
Twitter Bootstrap breaking Classic OOTB dialogs JoseBerciano - Adobe Experience Manager
I would like to integrate Twitter Bootstrap (latest version 3.3.6) in my website, though when adding the bootstrap css it seems to be breaking the dialogs layout of the page and also the components.I tried both adding it as a clientLib and as a dependency to my clientlibsAll, same result either way. Any suggestions?
1467
Views
2
Likes
6
Answers and Comments
Re: Getting Tag title from javascript JoseBerciano - Adobe Experience Manager
Hi kautuksahni,thanks for you help but I am afraid that does not work for me, as I could have "parenttag:tag1/subtag1" which its actual title could be "Little Kitties"Is any CQ object I can call from the front end to get this value? or any other way/workaround to do so?
3705
Views
0
Likes
1
Replies
Getting Tag title from javascript JoseBerciano - Adobe Experience Manager
Hi all,From one javascript file I am receiving the following array:tags ["parenttag:tag1/subtag1", "parenttag:tag1/subtag2", "parenttag:tag1/subtag3", "parenttag:tag2/subtag4", "parenttag:tag2/subtag5"]I would need to get each tag title from these values. E.g from "parenttag:tag1/subtag1" the tag title is defined as "Subtag 1"Is there any way of doing this from javascript? Thank you.
4455
Views
0
Likes
8
Replies
org.apache.sling.api.resource.LoginException: Cannot derive user name for bundle com.mycompany.core [472] and sub service writeService JoseBerciano - Adobe Experience Manager
Hi all,I am struggling with an issue regarding one EventListener I implemented, basically every time I need to get a session instance I get this:org.apache.sling.api.resource.LoginException: Cannot derive user name for bundle com.mycompany.core [472] and sub service writeServiceI found some information about what can be causing this issue: http://stackoverflow.com/questions/31350548/resourceresolverfactory-getserviceresourceresolver-throws-exception-in-aem-6-1Also some more information about how...
1929
Views
0
Likes
1
Replies
Re: Parsys overlapping JoseBerciano - Adobe Experience Manager
More info:The line that fails in granite.js is this one:return open.apply(this, arguments);where 'arguments' is an array containing this:["GET", "/libs/cq/security/userinfo.json?cq_ck=1467717437065", false, undefined, undefined]I tried http://localhost:4502/libs/cq/security/userinfo.json and it returns ERR_EMPTY_RESPONSEHope it helps to figure out what would be causing this issue.
1188
Views
0
Likes
1
Replies
Parsys overlapping JoseBerciano - Adobe Experience Manager
Hi,So as the attached picture shows for some reason these parsys are overlapping in one of my pages.[img]https://s31.postimg.org/bwi7k4pgr/Screen_Shot_2016_07_05_at_11_25_24.png[/img]Funny thing is that when I stretch the browser window a bit, the parsys automatically arrange themselves in the right position. I tested in both Chrome and Firefox with identical result.[img]https://s31.postimg.org/vc2obrgp7/Screen_Shot_2016_07_05_at_11_27_41.png[/img] The Chrome console log only spits the following...
1651
Views
0
Likes
5
Replies
Retrieve PDF file generated by Form JoseBerciano - Adobe Experience Manager Forms
Hi,I am having some difficulties on finding the way of getting some data programmatically about the PDF documents generated by my form.What I did is set the Submitting actions like so:After hitting submit I can effectively see that the file has been stored in CRX: Now my question is, how can I access these PDF files information programmatically? For now I would only need the PDF path in order to create a href tag in my html to allow users download their documents.So after some digging the best a...
920
Views
0
Likes
1
Replies
Re: AEM Translator, maximum length of indexes? JoseBerciano - Adobe Experience Manager
smacdonald2008 wrote... Here is the answer from the product team: The answer is 2 parts. The String used to create Index will create a node in the JCR for all those languages that have an internationalized string. So the actual translation will end up something like /apps/geometrixx/i18n/fr/ This node has a limit of 50 Characters 2. The node created above will be of type sling:Message and the complete Source text in english that was entered will end up as sling:key and the translation as a slin...
727
Views
0
Likes
0
Answers
AEM Translator, maximum length of indexes? JoseBerciano - Adobe Experience Manager
Hi all,I would need to know if AEM Translator has some restriction in the maximum length an index can be. E.g. the "String" column here http://localhost:4502/libs/cq/i18n/translator.htmlI need to specify to our clients all restrictions the will find when working with our product in AEM.I could not find this information in the Adobe documentation webpage https://docs.adobe.com/docs/en/aem/6-1/develop/components/i18n/translator.html, so I would be very grateful if somebody has any idea about this....
1178
Views
1
Like
3
Answers and Comments
Re: Showing my app in 'Sites' JoseBerciano - Adobe Experience Manager
kunal23 wrote... Yes you are right. The phonegap folder is indeed excluded to be shown under Sites node. The exclude property is set on the following node - /libs/wcm/core/content/sites/jcr:content/body/content/content/items/childpages/datasource. If you remove phonegap from the exclude pattern then it does show up under sites. Thanks! I think that is pretty much what I need instead of refactoring the whole app 🙂
393
Views
0
Likes
0
Answers
Re: Showing my app in 'Sites' JoseBerciano - Adobe Experience Manager
I've also checked some example apps I've used as a reference when developing (Kitchen Sink and AEM Starter Kit) and I do not see them either in "Sites".I am guessing that this has to do with the app being under the wrong folder /content/phonegap/ ?
336
Views
0
Likes
0
Answers