Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
Hi Tanvi,
You can allow video items on ContentArea by the below code and then write logic on the view to render it.
[AllowedTypes(AllowedTypes = new [] { typeof(VideoData) })]
public virtual ContentArea RelatedContentArea { get; set; }
But I suggest you create a new block type called VideoBlock and then create its own controller/view and then it will work as a normal block.
I want to allow a video as an item in my content area.
Please let me know the process of how a video can be added into it