Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi! I'm trying to get all the possible options in a dropdown list and put them in an enumerable variable in the front end code (.cshtml). I believe these are called prevalues? Not sure.
There was a way to do this in Umbraco 7, but I can't find how to do this in 8. Halp?
This is how I make it works :
var _dataTypeService = Services.DataTypeService;
var blogCategories = (DropDownFlexibleConfiguration)_dataTypeService.GetDataType(1142).Configuration;
foreach (var value in blogCategories.Items)
Visual Studio wasn't smart enough to give me the namespace.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted