Try our conversational search powered by Generative AI!

Is there a "List" property I can use in a Custom New Promotion?

Vote:
 

Hi,

I'm setting up a custom promotion in the new Promotions system. 

I'd like to have a property (or Content Block?) that can be used like a .Net Dictionary, or a List>.

My users will need to add / delete rows.

Something like this:

.

MyListProperty:

"red", "125"

"blue", "999"

"green", "xxxxx"

"black", "7654321"

.

Is something like that possible?

Thanks so much,

 - Ken

#174417
Jan 25, 2017 23:13
Vote:
 

A promotion type is just another CMS content type, so there is no builtin support for dictionary type. However I guess you can try this:

http://epideveloper.blogspot.se/2013/10/episerver-7-custom-property-combined.html

There is no guarantee it'll work, though. 

#174420
Jan 25, 2017 23:45
Vote:
 

Thank you Quan,

Is there built-in support for a List type?  Like a List<string> ?

 - Ken

#174421
Jan 25, 2017 23:49
Vote:
 

It's supported: http://world.episerver.com/blogs/per-magne-skuseth/dates/2015/11/trying-out-propertylistt/ 

#174427
Jan 26, 2017 8:56
Vote:
 

Nice.. thanks as always!

#174471
Jan 26, 2017 20:10
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.