Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
The MediaController
will be invoked when you drop something inheriting from MediaData
into e.g. a ContentArea. Unless there is a more specific AsyncPartialContentComponent
available for the content type.
The Foundation project contains
MediaController
which implements theAsyncPartialContentComponent
.My question is: How to use that controller for rendering data? For example, how to tell renderer to use ImageMediaData from MediaController?
I have not found any example in the Foundation project.
ImageMediaData
does not seem to useMediaController
logic for rendering.I also tried to register that controller in the
IViewTemplateModelRegistrator
, but I'm not sure how since registrator requires path for a view whileMediaController
specifies it in the logic.Link to code: https://github.com/episerver/Foundation/blob/6da2cf768f517062c6a25158d72eed53fb0f60a9/src/Foundation/Features/Media/MediaController.cs