Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save amirkhan81/6d6a328cd07937529edea5638d143dd5 to your computer and use it in GitHub Desktop.
Save amirkhan81/6d6a328cd07937529edea5638d143dd5 to your computer and use it in GitHub Desktop.
@{
var dataTypeId = umbraco.cms.businesslogic.datatype.DataTypeDefinition.GetAll().First(d=> d.Text == "Map - Icon").Id;
var dataTypeList = Umbraco.DataTypeService.GetPreValuesByDataTypeId(dataTypeId);
foreach(var dataTypeValue in dataTypeList) {
<p>@dataTypeValue</p>
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment