Add Mime Mappings for webfont and additional audio/video formats
----------------------------------------------------------------
Key: MAGNOLIA-3870
URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3870
Project: Magnolia
Issue Type: Improvement
Security Level: Public
Components: core
Affects Versions: 4.4.5
Reporter: Matt Dertinger
Assignee: Philipp Bärfuss
Hi,
Currently, there are no {{MimeMappings}} for webfonts and the {{WebM}} and
{{Theora}} audio and video file formats. Adding the following update tasks to
{{CoreModuleVersionHandler.java}} within the delta for the 4.5 release will add
them.
{code}
.addTask(new AddMimeMappingTask("eot", "application/vnd.ms-fontobject",
"/.resources/file-icons/eot.png"))
.addTask(new AddMimeMappingTask("oga", "audio/ogg",
"/.resources/file-icons/ogg.png"))
.addTask(new AddMimeMappingTask("ogg", "video/ogg",
"/.resources/file-icons/ogg.png"))
.addTask(new AddMimeMappingTask("ogv", "video/ogg",
"/.resources/file-icons/ogg.png"))
.addTask(new AddMimeMappingTask("otf", "application/x-font-otf",
"/.resources/file-icons/otf.png"))
.addTask(new AddMimeMappingTask("ttf", "application/x-font-ttf",
"/.resources/file-icons/ttf.png"))
.addTask(new AddMimeMappingTask("weba", "audio/webm",
"/.resources/file-icons/webm.png"))
.addTask(new AddMimeMappingTask("webm", "video/webm",
"/.resources/file-icons/webm.png"))
.addTask(new AddMimeMappingTask("woff", "application/x-font-woff",
"/.resources/file-icons/woff.png"))
{code}
*Note:* The tasks above reference file icons that don't yet exist. Those
should probably be created and added to the core module.
Let me know if you have any questions.
Cheers,
Matt
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------