Is there a way to have an ampersand (&) in the title of a datalist item

cancel
Showing results for 
Search instead for 
Did you mean: 
Scorpios
Customer

Is there a way to have an ampersand (&) in the title of a datalist item

Jump to solution

I am creating a custom data list and one of the properities is Dun & Bradstreet
They would like to have the title "D & B"

When I add the ampersand I get a parse error in the alfreco.log file

entity reference names can not start with character ' ' (position: TEXT seen ...<property name="CUSmiley Very HappyandB">\r\n\t\t\t\t\t<title>D & ... @113:17)


<property name="CUSmiley Very HappyandB">
<title>D & B</title>
<type>d:text</type>
</property>


I have also tried "D &amp B" and got the same type parse error.

I am currently working around the problem using "D and B" for the title but wanted to see if someone knew a way 

to do this.

 

Thank You.

1 Solution

Accepted Solutions
Scorpios
Customer

Re: Is there a way to have an ampersand (&) in the title of a datalist item

Jump to solution

I found my solution

The solution is to define title in the properties file and then reference the property in the section you add to the

share-config-custom.xml file.

View solution in original post

2 Replies
Scorpios
Customer

Re: Is there a way to have an ampersand (&) in the title of a datalist item

Jump to solution

I found my solution

The solution is to define title in the properties file and then reference the property in the section you add to the

share-config-custom.xml file.

EddieMay
Alfresco Employee

Re: Is there a way to have an ampersand (&) in the title of a datalist item

Jump to solution

Hi @Scorpios,

Great that you found a solution and thanks for reporting back - really useful to other users.

Cheers, 

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!