Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

using underscore in XF name

Avatar

Level 6

I created experience fragments using naming pattern "word2-word2-word3_word4", but the node name that is getting saved in the CRX is:  "word2-word2-word3word4". Underscore is getting ripped off of it comes after in the naming. But these work: "word1_word2", "word1-word2", "word1_word2-word3".

I noticed that after 19 letters in the naming, the underscore gets replaced by empty string.

Is this a product bug?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

If you use as it is in a Title field  then it will remove the space(and invalid characters), this OOTB behaviour.

 

If you need to set node name with _ then put in the Name field.

 

arunpatidar_1-1696846243220.png

 

 

Examples:

arunpatidar_0-1696846106638.png

 



Arun Patidar

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi,

If you use as it is in a Title field  then it will remove the space(and invalid characters), this OOTB behaviour.

 

If you need to set node name with _ then put in the Name field.

 

arunpatidar_1-1696846243220.png

 

 

Examples:

arunpatidar_0-1696846106638.png

 



Arun Patidar

Avatar

Administrator

@Shaheena_Sheikh Did you find the suggestions from @arunpatidar helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni