Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all,
is there any way to add custom media types to a package in v7 ?
Best
Sören
Hi Sören,
You could create a custom package action that creates the media type during install.
Docs http://our.umbraco.org/wiki/reference/packaging/package-actions
Samples https://packageactioncontrib.codeplex.com/
Best,
Richard
Hi Richard,
thank you. You're right, so it should work. I'll try in the next few days or weeks :)
For DAMP I wrote some code in the post instal user control which manually added the media types. Here is the code for the old API: http://damp.codeplex.com/SourceControl/latest#DAMP.Samples/Installer.ascx.cs Look for the CreateMediaType method.
Jeroen
Thank you :)
Have found a solution with using the new API:
https://our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/66816-how-create-new-document-type-with-service
Best, Sören
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How add media types to package
Hi all,
is there any way to add custom media types to a package in v7 ?
Best
Sören
Hi Sören,
You could create a custom package action that creates the media type during install.
Docs http://our.umbraco.org/wiki/reference/packaging/package-actions
Samples https://packageactioncontrib.codeplex.com/
Best,
Richard
Hi Richard,
thank you. You're right, so it should work. I'll try in the next few days or weeks :)
Best,
Sören
For DAMP I wrote some code in the post instal user control which manually added the media types. Here is the code for the old API: http://damp.codeplex.com/SourceControl/latest#DAMP.Samples/Installer.ascx.cs Look for the CreateMediaType method.
Jeroen
Thank you :)
Have found a solution with using the new API:
https://our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/66816-how-create-new-document-type-with-service
Best, Sören
is working on a reply...