Version 11.9.4
I can create a link and it's saved and displayed fine. When I'm in edit mode and trying to edit the link it's gone. If I cancel it's still there.
Anyone came across this?
Model:
[IndexInContentAreas] [ContentType(GUID = "4204eac8-d216-493d-a0de-a51230e1e5c7")] [ThumbnailIcon(FontAwesome.ListUl, Global.ContentTypeColors.Inverted, Global.ContentTypeColors.Standard)] public class LinksBlock : SiteBlockData, IRightColumnBlock { [Required] [Display( GroupName = SystemTabNames.Content, Order = 10)] public virtual string Title { get; set; } [Display( GroupName = SystemTabNames.Content, Order = 20)] public virtual LinkItemCollection Links { get; set; } }
View:
@model LinksBlock @if (!string.IsNullOrWhiteSpace(Model.Title) || PageEditing.PageIsInEditMode) { <div class="linkCollection-header" @Html.EditAttributes(m => m.Title)>@Model.Title</div> } @if (Model.Links != null || PageEditing.PageIsInEditMode) { @Html.PropertyFor(m => m.Links, "LinkCollectionList") }
Version 11.9.4
I can create a link and it's saved and displayed fine. When I'm in edit mode and trying to edit the link it's gone. If I cancel it's still there.
Anyone came across this?
Model:
View: