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
How do I update a Content Type Property (e.g Mandatory, Validation, Description) in Umbraco 6 (I'm using 6.1.6)?
I tried updating like below but it doesn't update it:
PropertyType prop = contentType.getPropertyType(propAlias);
//contentType is umbraco.cms.businesslogic.ContentType
prop.Mandatory = propAttr.Mandatory;
prop.ValidationRegExp = propAttr.ValidationRegExp;
prop.Description = propAttr.Description;
prop.SortOrder = propertySortOrder;
prop.Save();
Am I missing something?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to update Content Type Property (e.g Mandatory, Validation, Description) in Umbraco 6.1.X?
How do I update a Content Type Property (e.g Mandatory, Validation, Description) in Umbraco 6 (I'm using 6.1.6)?
I tried updating like below but it doesn't update it:
PropertyType prop = contentType.getPropertyType(propAlias);
//contentType is umbraco.cms.businesslogic.ContentType
prop.Mandatory = propAttr.Mandatory;
prop.ValidationRegExp = propAttr.ValidationRegExp;
prop.Description = propAttr.Description;
prop.SortOrder = propertySortOrder;
prop.Save();
Am I missing something?
is working on a reply...