cancel
Showing results for 
Search instead for 
Did you mean: 

Special characters as property name in content model

patil
Champ on-the-rise
Champ on-the-rise
Can we have the property in content model with special characters?

<property name="globalscape:Batch@Creator's#Station ID">
<title>Long No</title>
<type>d:long</type>
<mandatory>true</mandatory>
</property>

Thanks,
Patil
2 REPLIES 2

jpotts
World-Class Innovator
World-Class Innovator
Seems like a supremely bad idea. Especially the single quote and the space. You're going to be referring to those properties in Lucene query strings and as keys in an array (e.g., in JavaScript, like this: doc.properties['globalscape:fooProperty']), in properties files, in XML, and on and on. So keep it simple. Those symbols add nothing to the descriptiveness of the property that you can't accomplish with plain text.

Jeff

mrogers
Star Contributor
Star Contributor
No you can't.

You can have display names and descriptions for the properties which will be human readable,   That's probably what you want instead.