Expand my Community achievements bar.

SOLVED

client context is not opening properly

Avatar

Former Community Member

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

1 Accepted Solution

Avatar

Correct answer by
Level 6

We use the client context this way:

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

View solution in original post

9 Replies

Avatar

Level 7

[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 

Avatar

Level 7
<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 ?

Avatar

Level 6

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

Avatar

Former Community Member

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

Avatar

Former Community Member

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

Avatar

Former Community Member

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

Avatar

Former Community Member

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

Avatar

Correct answer by
Level 6

We use the client context this way:

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

Avatar

Level 7

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 :)