Suggestion : create a custom namespace for my application | Community
Skip to main content
bilal_ahmad
Level 5
May 28, 2020 9:52 AM UTC
Solved

Suggestion : create a custom namespace for my application

Dear Community members,

 

I am curious if I can create a namespace to save my custom properties. Just like what AEM offers - jcr:title, dc:description, etc . I want to create my own(mysite:customTitle) and use it across my application.

 

A. is it feasible?

B. If yes, then how to do it? what's the catch and things I must take care of while creating one?

 

Look forward to your valuable thoughts on this.

 

Many thanks in advance,

Bilal.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
leoberliantAccepted solution
Employee
May 28, 2020 1:07 PM UTC

Yes, it's feasible to add a custom namespace.

1. Open up CRX Explorer by going to http://localhost:4502/crx/explorer/index.jsp. If you are not logged in, select Login and enter Admin credentials for the AEM environment:

2. Select Node Type Administration and in the new window, select Namespaces

3. At the bottom of the window, select New

4. Enter a URL (for now, it doesn’t have to be a real URL, for example, http://weretail.com)

5. Enter a prefix, for example mysite

6. Select OK

7 replies

joerghoh
Employee
May 28, 2020 5:37 PM UTC

It's doable, but I would avoid it. Why? Because you always have to take care that this namespace is registered. Sharing a content package with Adobe support might not be that straight forward anymore.

 

Full disclosure: I never created custom namespaces in my projects. Worked very well 🙂 And I never missed them.

Translate
bilal_ahmad
Level 5
May 29, 2020 10:46 AM UTC
Thanks ton, @joerghoh , you're the best!
Translate
arunpatidar
New Participant
May 28, 2020 5:07 PM UTC

I am adding one more point to previous answer -

Make sure, your replication user(receiver) should have jcr:namespaceManagement privilege to create namespace on publish.

https://docs.adobe.com/content/help/en/experience-manager-64/deploying/configuring/troubleshoot-rep.html

Translate
Arun Patidar
bilal_ahmad
Level 5
May 29, 2020 10:42 AM UTC
Thank you so much, Arun. Appreciate your apt response 🙂
Translate
BrianKasingli
New Participant
May 28, 2020 3:23 PM UTC

@bilal_ahmad,

You create a new custom namespace under, the CRX Explorer, http://localhost:4502/crx/explorer/index.jsp, via @leoberliant's mention. There are no problems when it comes to registering a new namespace. The catch is you need to set up a namespace for each different AEM environment(s); read is fine.

Translate
leoberliantAccepted solution
Employee
May 28, 2020 1:07 PM UTC

Yes, it's feasible to add a custom namespace.

1. Open up CRX Explorer by going to http://localhost:4502/crx/explorer/index.jsp. If you are not logged in, select Login and enter Admin credentials for the AEM environment:

2. Select Node Type Administration and in the new window, select Namespaces

3. At the bottom of the window, select New

4. Enter a URL (for now, it doesn’t have to be a real URL, for example, http://weretail.com)

5. Enter a prefix, for example mysite

6. Select OK

Translate
bilal_ahmad
Level 5
May 29, 2020 10:52 AM UTC
Thank you @leoberliant, it was helpful.
Translate