client context is not opening properly | Community
Skip to main content
October 16, 2015
Solved

client context is not opening properly

  • October 16, 2015
  • 9 replies
  • 3687 views

Hi,

I can’t see client context page when I use ctt + alt +c. When I press this key combination I am getting empty black screen. If I click client context design page, it s going to 404 error: “The requested URL /libs/cq/personalization/content/clientcontext/content.html was not found on this server.”

I have included the following jsp file in my page

    <cq:include script="headlibs.jsp"/>

    <cq:include script="/libs/wcm/core/components/init/init.jsp"/>

    <cq:include script="stats.jsp"/>

What could be the problem? Do I need to include any jsp file in header?

 

Thanks,

Anderson

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Ove_Lindström

We use the client context this way:

<cq:include path="clientcontext" resourceType="cq/personalization/components/clientcontext"/>

9 replies

Ojjis
Level 7
October 16, 2015

[quote:postID=forum__cqr1-hi_i_cant_seecl__b8vb-we_use_the_clientco]

We use the client context this way:

<cq:include path="clientcontext" resourceType="cq/personalization/components/clientcontext"/>

 

[/quote]

As Ove said, make sure you include that line at the start of the page body 

Ojjis
Level 7
October 16, 2015
<cq:include path="clientcontext" resourceType="cq/personalization/components/clientcontext"/> 


is including the client context component which in turn, in it's .jsp file, is trying to find the clientcontext folder located on the design path of your page. If you have not set you own path it will look for it in "/etc/clientcontext/default" with the following code:
 

String ccPath = currentStyle.get("path","/etc/clientcontext/default");

Do you have your own design path set and do you have a client context store there ?

Level 6
October 16, 2015

It is actually the node /etc/clientcontext/default/content that defines the parts of the Client Context. Look if you have that node.

October 16, 2015

Yes, I have the above folder structure in my cq as you have mentioned(/etc/clientcontext/default/content)

Is anything wrong or need to add any node on this given path?

Thanks,

Anderson

October 16, 2015

Thanks..client context is started to load all the profiles.:)

October 16, 2015

Hi Ojjis,

I do have design path for my web site but it does not have client context store.

Could you please tell how to create client context in my design path?

Thanks,

Anderson

October 16, 2015

Yes. I did the above one. But I am getting black screen which does not have any information about the user when i press ctr + alt + r

Please find attached screen shot for your reference.

I do not have 'clientcontext' folder under cq/personalization/components.

I have the following folder under /libs/cq/personalization

* clientlib

*components

*install

*opensocial

*templates

*widgets

Do i need to add that folder manually? 

 

Thanks,

Anderson

Ove_LindströmAccepted solution
Level 6
October 16, 2015

We use the client context this way:

<cq:include path="clientcontext" resourceType="cq/personalization/components/clientcontext"/>
Ojjis
Level 7
October 16, 2015

Ah ok great, just copy the standard one to the destination of your design path.
More about this is described here:

http://dev.day.com/docs/en/cq/current/developing/client_context_detail.html
Good luck :)