AI OnAI Off
Hi Ethan
It could be that Episerver chooses another controller to render the content, instead of your controller.
You could try splitting this into four separate controllers, one for each media type (with the last being fall back to MediaData). This will make your controllers "more specific" controllers, and more eligible to be chosen for rendering.
Tried that. BUT, I think the issue is this: When I add an image to block as ContentReference, with a UIHint.Image, then it uses the "Image" display template. The controller is for when you add the image to content area. So, once I updated my Image display template, it did what I wanted it to do.
Im trying to use a controller to set some parameters on my media items. So, I have PartialContentController<MediaData> which I thiought would grab any item that inherited from MediaData. The images render, but the controller is not getting called. How do I tell Optimizely to use this controller?