custom namespace not getting registered in AEM | Community
Skip to main content
ashishp61733193
New Participant
May 10, 2019 4:57 AM UTC

custom namespace not getting registered in AEM

How do we register namespace through .cnd file in AEM ?

I followed Namespace | Content Management  and tried putting .cnd file in /apps/cq and uploaded through "mvn clean install -PautoInstallPackage" but no luck.

My .cnd file has this line "<demo='demo'>".

Please help with the issue.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Employee
Jul 14, 2020 10:40 AM UTC

Hi There,

 

Please refer article https://techrevel.blog/2020/01/23/aem-custom-namespace/ which works fine. 

 

Just a little correction in the steps, if you just register it with namespace registration with a single line shown as below, it does not work(techrevel namespace):

 

<'techrevel'='http://www.techrevel.blog'>

 

To make it work also put the nodetype definition even if you don't need it like shown below:


<'sling'='http://sling.apache.org/jcr/sling/1.0'>
<'nt'='http://www.jcp.org/jcr/nt/1.0'>
<'techrevel'='http://www.techrevel.blog'>

[sling:Folder] > nt:folder
- * (undefined)
- * (undefined) multiple
+ * (nt:base) = sling:Folder version

 

Thanks!

Translate
arunpatidar
New Participant
May 10, 2019 11:14 AM UTC

Can you check if your file deployed or not in crxde from eclipse.

try to create manual file, if no luck, try below

Adobe AEM/CQ5 Articles: Creating custom JCR node type

Translate
Arun Patidar
ashishp61733193
New Participant
May 14, 2019 6:01 AM UTC

The file is getting deployed in crxde but namespace is not getting registered. Also tried creating listener but it doesn't seem to work either.

Translate