Adds AllowSegmentVariation on the Doctype to be peristed
This commit is contained in:
@@ -349,7 +349,7 @@ namespace Umbraco.Web.Editors
|
||||
{"loginBackgroundImage", Current.Configs.Settings().Content.LoginBackgroundImage},
|
||||
{"showUserInvite", EmailSender.CanSendRequiredEmail},
|
||||
{"canSendRequiredEmail", EmailSender.CanSendRequiredEmail},
|
||||
{"showAllowSegmentationForDocumentTypes", false},
|
||||
{"showAllowSegmentationForDocumentTypes", true},
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -69,6 +69,9 @@ namespace Umbraco.Web.Models.ContentEditing
|
||||
[DataMember(Name = "allowCultureVariant")]
|
||||
public bool AllowCultureVariant { get; set; }
|
||||
|
||||
[DataMember(Name = "allowSegmentVariant")]
|
||||
public bool AllowSegmentVariant { get; set; }
|
||||
|
||||
//Tabs
|
||||
[DataMember(Name = "groups")]
|
||||
public IEnumerable<PropertyGroupBasic<TPropertyType>> Groups { get; set; }
|
||||
|
||||
@@ -403,6 +403,7 @@ namespace Umbraco.Web.Models.Mapping
|
||||
if (!(target is IMemberType))
|
||||
{
|
||||
target.SetVariesBy(ContentVariation.Culture, source.AllowCultureVariant);
|
||||
target.SetVariesBy(ContentVariation.Segment, source.AllowSegmentVariant);
|
||||
}
|
||||
|
||||
// handle property groups and property types
|
||||
|
||||
Reference in New Issue
Block a user