London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
Hi,
I want to render a ContentArea property which has a AllowedType(Block1) for Example:
[CultureSpecific(true)]
[Display(Name = "Link Collection", Order = 10)]
[AllowedTypes(typeof(LBlock))]
public virtual ContentArea LinkCollection { get; set; }
LBlock contains a property as well as contentArea accepting type of itself
LBlock.cs
[CultureSpecific]
[Display(Name = "Title", Order = 10)]
public override string Title { get; set; }
[CultureSpecific(true)]
[Display(Name = "Link", Order = 20)]
public override Url Link { get; set; }
[CultureSpecific(true)]
[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