Adobe Marketing Cloud Community

Welcome to the community for the Adobe Marketing Cloud. It's your place to learn about our suite of digital experience solutions, talk with other customers, exchange examples, share experiences and get help from the Adobe experts.

Select a community:

Includes: SiteCatalyst, Discover, Insight, ReportBuilder, Genesis, DataWarehouse, and TagManager

Includes: CQ and Scene7

Includes: ContextOptional

Includes: Test&Target, Test&Target 1:1, Recommendations, and Search&Promote


Trending

01:47AM
Servlet / Script defined by path vs defined by resource

Hi All ,

   Warm greetings . I would like to know any use case or any example where servlet defined by resource is a better approach then defined by path (as mentioned in some of the blogs) .  I had a use case where a custom search component was developed which would retrieve locations list from JCR repo for a give post code .

So the approach we followed are ,

 Defined a custom servlet and registered it using path ( @slingservlet ( path = "mycustomservlet") . From 

 The custom servlet would execute custom search services which are registered in OSGI bundle along with the custom servlet .

 In the servlet after the service , the result is forwarded to a jsp which would render the result in list as json output . 

 

I include this component in one of page components and works fine  . In some blogs , it is mentioned that resolving the servlet via path is the best approach but couldn't figure out any advantages of using this one over the one we followed . 

Appreciate if any one can give some explanation with an example or  taking the above  usecase ?

regards

 

 

 

 

 

 

 

 

01:42AM
Frames Tracking

YouTube Player Tracking Plugin:It is a copy & paste plugin to get embedded YouTube videos tracked into SiteCatalyst video reports. It simply requires the standard s_code + the media module. 

Please check : https://developer.omniture.com/en_US/gallery/youtube-player-tracking-plugin  and http://blogs.adobe.com/digitalmarketing/analytics/youtube-yup-we-track-that-advanced-solutions/

 

12:16AM
Integrating CQ 5 with .net framework

See this article that talks about how to create a .NET app that submits data to the Adobe CQ JCR:  http://scottsdigitalcommunity.blogspot.ca/2013/06/submitting-data-to-adobe-cq-jcr-using.html

Hope this helps

 

10:35PM
Integrating CQ5.5/6 with SiteCatalyst. Has anyone met any login problems lately?

Hi, thanks. I went to the thread and it seems like the only resolution suggested was to log a support ticket, which my team did. It has been a week and there have been no replies. Thus I am wondering if it is a common issue.

06:54PM
Removing extra decoration tags in CQ5.6

Hi ,

 The above code preserves the editing functionality but still generates some default CQ decoration div's

 like  

<div class="parsys parsys1">

<div class="block1 sectio

 

To completely remove any decoration tags CQ generates and preserve editing I implemented the following my global_ext.jsp which is my custom jsp and form of extension to global.jsp

if (WCMMode.fromRequest(request) != WCMMode.EDIT && WCMMode.fromRequest(request) != WCMMode.DESIGN) {
               
                 componentContext.setDefaultDecorationTagName("");
        }

 

With CQ 5.6 it works .  I didn't get a a chance to test it on other versions . 

 

11:08AM
Deprecated class org.apache.sling.commons.osgi.OsgiUtil

Hi Reinhard:

You can use PropertiesUtil and ServiceUtil that contain all methods that are now deprecated in OsgiUtil. Both are located in the org.apache.sling.commons.osgi package.

E.g.:

The call to OsgiUtil:

String myProperty = OsgiUtil.toString(propValue, defaultValue);

...can be simply replaced with:

String myProperty = PropertiesUtil.toString(propValue, defaultValue);

 

Hope this helps,

Gregor

08:27AM
Integrating CQ 5 with .net framework

Hi,

Is it possible to integrate CQ5 with .net framework. If it possible, please help how to integrate

 

07:10PM
How to include new pages traffic?

If i add new pages to my website for any specific category and I want to include those pages traffic to my predefine category report (traffic variable sprop).

Is it possible to fix this issue from digital pulse bugger if i am not admin?  

 

    

05:24PM
Frames Tracking

What is best approach to track frames and clicks on embed youtube video?

07:15PM
Removing extra decoration tags in CQ5.6

I haven't had time to throughly test this, but if you'd like to preserve the editing functionality in author mode, and disable the extra CQ wrapper divs in publish, you might try creating your own global.jsp (since it's likely included in every one of your jsp files) with the following:

<%@include file="/libs/foundation/global.jsp" %><%
%><%@page import="com.day.cq.wcm.api.components.IncludeOptions"%><%
%><%@page import="com.day.cq.wcm.api.WCMMode"%><%
%><%
          if (WCMMode.fromRequest(request) != WCMMode.EDIT && WCMMode.fromRequest(request) != WCMMode.DESIGN) {
                IncludeOptions.forceSameContext(true);
          }
%>

To implement, you would put this file under a place like /apps/[project name]/components/global.jsp, and in each component you wanted this behavior (or all components ideally, to keep everything standard) you would change <%@include file="/libs/foundation/global.jsp" %> to <%@include file="/apps/[project name]/components/global.jsp" %>.

 

Let me know if this works for you (and I'll finishing implementing as well) :)