I've got a drop down multiple that allows content editors to select multiple days of the week (e.g., "Monday" and "Tuesday"). If I do this:
[UmbracoProperty]
public IEnumerable<string> Days { get; set; }
The value doesn't seem to get set because the result of [UmbracoProperty] is a string (e.g., "Monday,Tuesday"). Is there a built in processor to return a collection of strings for a drop down multiple?
It appears that Umbraco's default behavior is to return a single string. Suppose I'll just create a processor to split the string based on commas. Not ideal, but what're you gonna do.
Ditto Processor for Drop Down Multiple?
I've got a drop down multiple that allows content editors to select multiple days of the week (e.g., "Monday" and "Tuesday"). If I do this:
The value doesn't seem to get set because the result of
[UmbracoProperty]
is a string (e.g., "Monday,Tuesday"). Is there a built in processor to return a collection of strings for a drop down multiple?I think I know the answer to this: https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/dropdown-list-multiple
It appears that Umbraco's default behavior is to return a single string. Suppose I'll just create a processor to split the string based on commas. Not ideal, but what're you gonna do.
Yeah, we had to roll our own processor for this.
Funny thing is that we've only used it on one project so far.
Cheers,
- Lee
is working on a reply...