Monday, November 19, 2012

Report Suites Architecture

I have seen lot of people started thinking about development, when we ask them to integrate site catalyst, Google analytic or urchin in their site, people are immediately jumping into code like how to call JavaScript to record data into site catalyst and how to retrieve site catalyst data etc… but all these things are simple, we can get lot of examples when we read respective SDK’s, but there is another area where we need to put actual attention What...

Saturday, November 17, 2012

Is it right approach deploying CSS, JavaScript files as part of deployment package in “Content Management System”?

Is it right approach deploying CSS, JavaScript files as part of deployment package in “Content Management System”? Why,  because I have seen some people who came from traditional web development and no knowledge on CMS trying to deploy css and js files through package and finally mess up entire environment like overriding content of css and js files of content authors How can we handle this situation, in any cms you can find two types of content one is static content and another one is dynamic content Dynamic content: The content...

Monday, November 5, 2012

Reading data from site catalyst through CQ5

In this article I am going to explain how to read data from site catalyst and display it on CQ5 components REST api’s : The omniture exposes REST api to read/write data from site catalyst data source, REST is a lightweight protocol and alternative to Web Services (SOAP, WSDL, etc.), in this I am not going to explain REST based concepts CQ5: To connect to site catalyst data source the cq5 has provided cq-analytics.jar file, this jar file is just wrapper of omniture REST api it provide different methods to read data from omniture, using this...

Monday, August 13, 2012

Bug in SharePoint 2010

I have created "Survey" activity feed using sharepoint object model but when I try to remove the same I am getting Not Implemented exception Error Message : "The method or operation is not implemented." Code : removeType = app.ActivityTypes["Survey"]; m_ActivityManager.ActivityApplications[app.ApplicationId].Remove(); //getting The method or operation is not implemented. if (removeType != null) { app.ActivityTypes.Remove(removeType); //getting The method or operation is not implemented. removeType.ActivityTypeNameLocStringResourceFile...

Tuesday, June 12, 2012

CQ5 : Creating new page and adding content

In this article, I am going to explain how to create new page and content using SlingHttpRequest Object <%@page import="com.day.cq.dam.api.Rendition"%> <%@page import="com.day.cq.dam.api.Asset"%> <%@page import="org.apache.sling.api.SlingHttpServletRequest"%> <%@include file="/libs/foundation/global.jsp"%> <%@page import="org.apache.sling.api.resource.ResourceResolver"%> <%@page import="com.day.cq.wcm.api.Template"%> <% ResourceResolver resolverPage = slingRequest.getResourceResolver(); Resource resPage...

Monday, June 11, 2012

CQ5 : Reading DAM assets

<%@page import="com.day.cq.dam.api.Rendition"%> <%@page import="com.day.cq.dam.api.Asset"%> <%@page import="org.apache.sling.api.SlingHttpServletRequest"%> <%@include file="/libs/foundation/global.jsp"%> <%@page import="org.apache.sling.api.resource.ResourceResolver"%> <% ResourceResolver resolver = slingRequest.getResourceResolver(); Resource res = resolver.getResource("/content/dam/geometrixx/movies"); Node rootNode = res.adaptTo(Node.class); if(rootNode!=null) { NodeIterator...

CQ5 Reading Node Properties

In CQ5 everything stores in the form of content ( Nodes and Properties ), but while reading content from repository the apache sling framework assumes this is a Resource.Because the sling follows REST based architecture In this article I am going to explore how to read properties of a Node <%@page import="org.apache.sling.api.SlingHttpServletRequest"%> <%@include file="/libs/foundation/global.jsp"%> <%@page import="org.apache.sling.api.resource.ResourceResolver"%> <% By using CRXDE I am going to create component called...