cancel
Showing results for 
Search instead for 
Did you mean: 

How to make itemtype attribute as String of collection

Former Member
0 Kudos

I want to make the item type contain an attribute, with its type is List of String, do any one know how?

like :

Accepted Solutions (1)

Accepted Solutions (1)

bidyadhar_tripathy
Participant
0 Kudos

Hi Guangwei ,

You can use type="StringCollection" (defined in core-items.xml) in your attribute definition. By default type is collection but If you need a list then you can define your collection type as below and use it as attribute type.

 <collectiontype code="CMSStringList" elementtype="java.lang.String" autocreate="true" generate="true" type="list" />

Former Member
0 Kudos

Thank you!

Answers (0)