在cq5/AEM中创建自定义MIME类型 [英] creating custom MIME type in cq5/AEM

查看:80
本文介绍了在cq5/AEM中创建自定义MIME类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在cq5/AEM中添加对专有3D格式的支持.尽管绝对没有经验,但我还是设法生成了一些工作组件来可视化资产.

I need to add support for a proprietary 3D format in cq5/AEM. Despite having absolutely no experience with this, I managed to generate a few working components to visualize the assets.

但是,现在,我需要创建自定义媒体处理程序,以从模型生成副本和缩略图.问题是,媒体处理程序只能在特定MIME类型的资产上工作,而cq5不能将类型与我的资产相关联.因此,我无法在它们上调用媒体处理程序.

But now, I need to create custom media handler to generate renditions and thumbnails from the model. The problem is, media handlers can only work on assets of specific MIME types, and cq5 do not associate a type to my assets. Thus, I can not have a media handler called on them.

是否有任何方法可以自定义cq5如何将MIME类型与资产相关联,或者我有另一种方法来解决此问题?

Is there any way to customize how cq5 associate MIME types to an asset, or I is there another way to circumvent the problem?

推荐答案

好,我找到了所需的东西.您可以通过转到http://localhost:4502/system/console/configMgr的OSGI控制台和Apache Sling MIME type Service配置将MIME类型链接到扩展.在那里,您可以添加新的MIME/扩展链接:

Ok, I found what I needed. You can link MIME type to extensions by going to the OSGI console at http://localhost:4502/system/console/configMgr and to the Apache Sling MIME type Service configuration. There, you can add new MIME / extension link:

MIME extensions...
model/collada+xml dae

这篇关于在cq5/AEM中创建自定义MIME类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆