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
So trying to refactor u4 code to v6....
umbraco.cms.businesslogic.web.DocumentType DocTypeFile = umbraco.cms.businesslogic.web.DocumentType.GetByAlias("FileDocument"); ....
switch (DocTypeFile.getPropertyType(property.Alias).DataTypeDefinition.Text) {case "Content Picker": break; case "Media Picker": break; case "Textstring": break;}
I can get to
Umbraco.Core.Models.IContentType DocTypeFile = Umbraco.Core.ApplicationContext.Current.Services.ContentTypeService.GetContentType("FileDocument");
But then get stuck trying to find a method on IContentType to refactor
DocTypeFile.getPropertyType(property.Alias).DataTypeDefinition.Text
Any pointers?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
refactoring DocumentType to ContentType.
So trying to refactor u4 code to v6....
I can get to
But then get stuck trying to find a method on IContentType to refactor
Any pointers?
is working on a reply...