How do I alter a MediaType via the v6 API services?
I am trying to create an event handler that can add a property to a MediaType when it is created. I am using the v6 API and I can already do this with a ContentType using the ContentTypeService but I can't find a service for MediaType objects or any means of doing this via the MediaService.
I have tried putting break points on the MediaService and ContentTypeService to catch the saving of a MediaType but with no luck.
How do I alter a MediaType via the v6 API services?
I am trying to create an event handler that can add a property to a
MediaTypewhen it is created. I am using the v6 API and I can already do this with aContentTypeusing theContentTypeServicebut I can't find a service forMediaTypeobjects or any means of doing this via theMediaService.I have tried putting break points on the
MediaServiceandContentTypeServiceto catch the saving of aMediaTypebut with no luck.Or:
Where should I be looking? It's not obvious how to manipulate a
MediaTypefrom here.the ContentTypeService contains the events for capturing MediaType
i've just tested them and these events fire in 6.1.5
the callback then passes IMediaType SaveEventArgs
Awesome, I didn't noticed the
ContentTypeService.SavingMediaTypemember.Many thanks.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.