Try our conversational search powered by Generative AI!

Render ContentArea having Blocks inside Blocks



I want to render a ContentArea property which has a AllowedType(Block1) for Example:

[Display(Name = "Link Collection", Order = 10)]
public virtual ContentArea LinkCollection { get; set; }

LBlock contains a property as well as contentArea accepting type of itself


[Display(Name = "Title", Order = 10)]
public override string Title { get; set; }

[Display(Name = "Link", Order = 20)]
public override Url Link { get; set; }

[Display(Name = "Link Collection", Order = 30)]
[AllowedTypes(new[]{ typeof(LBlock)})]
public override ContentArea LinkCollection { get; set; }

How can I render this block on View. Please help

Aug 16, 2020 9:34
@Html.PropertyFor(m => m.LinkCollection)
Aug 17, 2020 8:57
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.