Expand my Community achievements bar.

SOLVED

Is there a constant in CQ 5.6.x APIs with the value of the "cq" namespace and the "cq:PageContent" node type?

Avatar

Level 7

The closest thing I could found is, com.day.cq.wcm.api.NameConstants but it of course doesn't contain a constant value for "cq" as well as "cq:PageContent".

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Level 10

LinearGradient wrote...

The closest thing I could found is, com.day.cq.wcm.api.NameConstants but it of course doesn't contain a constant value for "cq" as well as "cq:PageContent".

Thanks.

 

All registered namespace at [1] . Use jcr NamespaceRegistry api to get those. Similarly for node types

[1]    http://localhost:4502/crx/explorer/ui/namespace_editor.jsp?ck=1407264696745&Path=&Callback=reload

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

LinearGradient wrote...

The closest thing I could found is, com.day.cq.wcm.api.NameConstants but it of course doesn't contain a constant value for "cq" as well as "cq:PageContent".

Thanks.

 

All registered namespace at [1] . Use jcr NamespaceRegistry api to get those. Similarly for node types

[1]    http://localhost:4502/crx/explorer/ui/namespace_editor.jsp?ck=1407264696745&Path=&Callback=reload