In the Media Types folder there are by default three Media Types: File, Image, Folder.
You can create custom Media Types in that folder and inherit properties/tabs via 'Compositions' from other Media Types. That's clear.
But you can also click a Media Type, then click "create" - a new Media Type will be created as a child of it.
Can anybody tell me if there is a functionality behind that? It makes sense to me to be able to add a Media Type in a Folder that I created. But creating a Media Typ in another?
I believe if you create a media type as a child of another, you will inherit all of the attributes of the parent media type, using inheritance like we used to do with document types.
Yes that makes sense, but here's something rotten.
When I create a document type under an existing type it indeed inherits all properties (obviously visible when you open it - you can see all props from the parent type marked as "inherited from Parent").
When I do the same with a media type, the child media type is completely empty, no props from he parent are displayed. When I upload a file as this media type there are also no props available.
So I think, either this is not implemented yet or it is a bug.
Media Types add as child?
Hi,
In the Media Types folder there are by default three Media Types: File, Image, Folder.
You can create custom Media Types in that folder and inherit properties/tabs via 'Compositions' from other Media Types. That's clear.
But you can also click a Media Type, then click "create" - a new Media Type will be created as a child of it.
Can anybody tell me if there is a functionality behind that? It makes sense to me to be able to add a Media Type in a Folder that I created. But creating a Media Typ in another?
Cheers, Stephan
Can anybody help?
Hi Stephen
I believe if you create a media type as a child of another, you will inherit all of the attributes of the parent media type, using inheritance like we used to do with document types.
Kind regards
Paul
Hi Paul,
Thanks for your reply.
Yes that makes sense, but here's something rotten.
When I create a document type under an existing type it indeed inherits all properties (obviously visible when you open it - you can see all props from the parent type marked as "inherited from Parent").
When I do the same with a media type, the child media type is completely empty, no props from he parent are displayed. When I upload a file as this media type there are also no props available.
So I think, either this is not implemented yet or it is a bug.
Kind regards, Stephan
addendum: I inspected the generated models .cs code file. Indeed the child media type is inherited from the parent, e.g.:
So I think, programmatically I can use the inherited properties, but in the backend there seems to be no possibility to set the inherited props.
Stephan
is working on a reply...