since ‎15-07-2014
‎10-12-2019
susheel
Level 4
Re: Caching rule for contexthub js
Avatar

susheel

susheel
- Adobe Experience Manager
Is it? what's the use of it having in author. We want to use it as data layer to integrate in launch so it should be available in publish as well dispatcher so that we can use that data ?

Views

2.4K

Likes

0

Replies

0
Caching rule for contexthub js
Avatar

susheel

susheel
- Adobe Experience Manager
The below url is fine in publish but how do we cache this in dispatcher as there is no extension at end:/etc/cloudsettings.kernel.js/libs/settings/cloudsettings/legacy/contexthubShall we ignore this for caching ?

Views

2.6K

Like

1

Replies

2
Re: Load omniture library via launch breaking
Avatar

susheel

susheel
- Adobe Experience Platform Launch
That was just an example script to explain the issue.

Views

1.5K

Likes

0

Replies

0
Re: How to trigger custom event in adobe launch rules
Avatar

susheel

susheel
- Adobe Experience Platform Launch
All our custom events are written in jQuery. Migration is getting tough for us.

Views

3.4K

Likes

0

Replies

0
Re: Load omniture library via launch breaking
Avatar

susheel

susheel
- Adobe Experience Platform Launch
I am not using the experience cloud id service. I am just loading it a java script via rules as that is how it was done in signal previously. The actual issue is:For example if the javascript is as below. var test = '<script src=""><\script>'; var test1="adasd";Browser will treat in the second line as end of script spit out the rest on the browser directly as below. var test = '<script src="">;var test1="adasd";Somehow I tried to fix it by doing as below: var test = '<script src=""><\scr'+'ipt>'; var test1="adasd";The above code worked in normal browser but when I put the script via launch seems like the code is getting converted while bu...

Views

1.3K

Likes

0

Replies

0
Re: How to trigger custom event in adobe launch rules
Avatar

susheel

susheel
- Adobe Experience Platform Launch
Thank you so much for your help and registering the case with window object

Views

3.3K

Like

1

Replies

0
Load omniture library via launch breaking
Avatar

susheel

susheel
- Adobe Experience Platform Launch
I am trying to load Adobe Visitor API for JavaScript version: 1.7.0 via Adobe Launch rule but the code is coming out of script tag after certain code.somecoderemaining code coming out of script tagNot sure why its happening.any better way to load libraries ??

Views

3.9K

Like

1

Replies

4
Re: How to trigger custom event in adobe launch rules
Avatar

susheel

susheel
- Adobe Experience Platform Launch
For now I have done as below. I will keep on adding all events as I find.$(window).on('event1 event2 event3',function(e) { document.body.dispatchEvent(new CustomEvent(e.type));});

Views

3.1K

Likes

2

Replies

0
Re: How to trigger custom event in adobe launch rules
Avatar

susheel

susheel
- Adobe Experience Platform Launch
Yeah I can do that but i am not sure how many custom events we have.

Views

3.1K

Likes

0

Replies

0
Re: Triggering Rules with a CustomEvent
Avatar

susheel

susheel
- Adobe Experience Platform Launch
window custom events are not working on LAUNCH

Views

3.8K

Likes

0

Replies

0
Re: How to trigger custom event in adobe launch rules
Avatar

susheel

susheel
- Adobe Experience Platform Launch
window doesn't work We are migrating from SIGNAL to LAUNCH. custom window events work fine there but it is not working here.

Views

3.1K

Likes

0

Replies

0
Re: How to trigger custom event in adobe launch rules
Avatar

susheel

susheel
- Adobe Experience Platform Launch
There is a lot of code written with window trigger in analytics. It would be tough to modify all.It works fine with body custom events. Also jquery way of triggering custom event is not working

Views

3.1K

Likes

0

Replies

0
How to trigger custom event in adobe launch rules
Avatar

susheel

susheel
- Adobe Experience Platform Launch
We have a scenario where a custom event would be triggered. Now I want to fire a tag when the custom event is triggered. What I did is: Created a new rule.In events section I used Custom Event from the dropdown.filled Custom Event Type with email_submit(This is the custom event triggered via $(window).trigger('email_submit')).In then section I am triggering one of the extensions(DoubleClick Floodlight).Note: if the use page top event then everything works fine but not with custom event. Please l...

Views

11.5K

Likes

5

Replies

11
Re: Html minification using AEM 6.1
Avatar

susheel

susheel
- Adobe Experience Manager
You are right but html compression plugin is smart enough to take care of all those issues. Here gzip is already enabled and it does great job of compression. But by removing white space 20% more was saved.

Views

6.7K

Likes

0

Replies

0
Re: Html minification using AEM 6.1
Avatar

susheel

susheel
- Adobe Experience Manager
Thank you

Views

6.7K

Likes

0

Replies

0
Re: Html minification using AEM 6.1
Avatar

susheel

susheel
- Adobe Experience Manager
I didn't get your point.Can you some example what you mean?

Views

6.7K

Likes

0

Replies

2
Re: Html minification using AEM 6.1
Avatar

susheel

susheel
- Adobe Experience Manager
This is along with gzip encoding. Extra compression

Views

6.7K

Likes

0

Replies

0
Html minification using AEM 6.1
Avatar

susheel

susheel
- Adobe Experience Manager
There might be requirements to minify html but we dont have anything in AEM OOTB.I have written a custom filter to minify the html and this is how the filter config looks like:The below is the rough code for html compression.HtmlCompressionFilter.javaimport java.io.IOException;import java.util.Map;import javax.servlet.Filter;import javax.servlet.FilterChain;import javax.servlet.FilterConfig;import javax.servlet.ServletException;import javax.servlet.ServletRequest;import javax.servlet.ServletResp...

Views

7.7K

Like

1

Replies

8
Re: How to pass parameters to Sling Modal from Sightly Component
Avatar

susheel

susheel
- Adobe Experience Manager
We can do with sling models as below:import org.apache.sling.api.SlingHttpServletRequest;import org.apache.sling.models.annotations.Model;import org.apache.sling.models.annotations.Optional;import org.apache.sling.models.annotations.injectorspecific.RequestAttribute;@Model(adaptables = SlingHttpServletRequest.class)public class TestModel {@RequestAttribute@Optionalprivate String test;@PostConstruct public void init() { //we can read the values directly here. }}

Views

6.1K

Likes

2

Replies

0
Re: How to read OSGI run mode configurations with OSGI R6 annotation?
Avatar

susheel

susheel
- Adobe Experience Manager
@ObjectClassDefinition(name = "Example Global Configs", description = "Example Global Configs")public @interface ExampleGlobalConfig { @AttributeDefinition(name = "example.path", description = "This is example path") String getExamplePath() default "";}@Component(service = ExampleGlobalConfigService.class, immediate = true)@Designate(ocd = ExampleGlobalConfig.class)public class ExampleGlobalConfigService {/*** example path*/private String examplePath;@Activate@Modifiedprotected void activate(fin...

Views

5.0K

Likes

0

Replies

1
Re: Remove auto generated div tag around the components
Avatar

susheel

susheel
- Adobe Experience Manager
you can use cq:htmlTag node in your component to generate your custom div with custom class.cq:tagName : Here you can define the div or section or whatever tag you need.I observed that if we don't provide cq:tagName the extra div itself is not getting generated (tested in 6.1 SP2)So may be you can use this way.

Views

2.1K

Like

1

Replies

0
Re: AEM 6.2 Touch UI Issue with Checkbox in Multifield
Avatar

susheel

susheel
- Adobe Experience Manager
Hi, Seems like you are using custom js( eaem-nested="") for multifield like Experiencing Adobe Experience Manager - Day CQ: AEM 62 - Touch UI Nested ( Multi-Multi ) Composite Multifield storing da… In that case if its not saving properly. Please updated your custom js to fix it.

Views

3.0K

Likes

0

Replies

0
Re: Reading a localStorage property in browser and use it in sightly-test condition
Avatar

susheel

susheel
- Adobe Experience Manager
Hi Sagar,Reading localstorage directly in sightly is not possible. Localstorage is a related to client side and passing that value to directly to sightly is not possible. You might have to write some servlet :Make an ajax call in the component like below:var url = "/bin/someservlet?localstorageval=" + localStorage.getItem("somelocalstorage") + "&resourcepath="+${resource.path}In the servlet you can set the value of the localstorage to the resource path, which we are passing to the servlet.Now yo...

Views

957

Likes

0

Replies

0
Re: Can anyone help me to provide an example to retrieve the values of Radio button/dropdown/checkbox from dialog to sightly
Avatar

susheel

susheel
- Adobe Experience Manager
Hi Sandhya,You can directly read it using ${properties.propertyName}.Here propertyName is the name you have given to the dropdown, radio etc. like name : ./somepropertyname~susheel

Views

989

Likes

2

Replies

0
Re: Save data from AEM to Asp.Net Site by API
Avatar

susheel

susheel
- Adobe Experience Manager
Hi Manjurhusen,You can write resource change listeners in AEM which will be triggered on every resource change in the repository. Something like below.acs-aem-samples/SampleResourceChangeListener.java at master · Adobe-Consulting-Services/acs-aem-samples · GitHubHere in this code you can define the paths to listen and type of changes to listen like added, changed, removed etc.So you can write some webservice in your dotnet to which you can pass data from the resource listener code. Webservice in...

Views

923

Likes

0

Replies

0
Re: Coral UI multifield in AEM 6.3 + sightly + JS Use api
Avatar

susheel

susheel
- Adobe Experience Manager
The above code is not for nested node structure its for single separate multifield. It can be updated based on node structure which is generated.

Views

2.6K

Likes

0

Replies

0
Re: Coral UI multifield in AEM 6.3 + sightly + JS Use api
Avatar

susheel

susheel
- Adobe Experience Manager
HI anoop,Are you using coral ui or granite UI component ? This is specific to coral UI 3.

Views

6.6K

Likes

0

Replies

4
Re: Submit to a Rest EndPoint
Avatar

susheel

susheel
- Adobe Experience Manager Forms
Hi Manas,You can do an ajax call to service endpoint from javascript or jquery or any library of your choice. But if you want to do something structural. Then you call the endpoint from Sling Models and map the response from the endpoint some Sling Models and use it via sightly(This might be useful in GET request). For post, put and delete I don't think you need extra AEM layer for external service endpoint its an option. Like if you want to hide your external endpoint url or something then you ...

Views

1.5K

Likes

0

Replies

0
Re: Coral UI multifield in AEM 6.3 + sightly + JS Use api
Avatar

susheel

susheel
- Adobe Experience Manager
Even JS Api could be placed in a utils folder or something and can be reused in any component any project. We already have examples using OSGI. I was just trying to show it using JS Api. Thats the only goal of this discussion.We can place reusable Js Use api code in some utils folder and reuse wherever we need as below:

Views

6.6K

Like

1

Replies

1
Re: RTE Hyperlink plugin prepends the author domain in 6.3
Avatar

susheel

susheel
- Adobe Experience Manager
BTW still using classic UI in 6.3~susheel

Views

6.6K

Likes

0

Replies

1