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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.