在OpenCms 中新建类型,在 opencms-module.xml 中对应的模块中,修改
1)、<explorertype name="kedauTemplate" key="fileicon.kedauTemplate" icon="tt_menu.png" reference="xmlcontent">
key="fileicon.kedauTemplate" 写在 .properties 文件中 key ,用于国际化
icon="tt_menu.png" 此类型所显示的图片
name="kedauTemplate" name 所指定的类型,需要定义如下
org.opencms.file.types.CmsResourceTypeXmlContent 解析 xsd 文件
2)、<newresource uri="newresource_xmlcontent.jsp?page=kedauTemplate" order="10000" autosetnavigation="false" autosettitle="false"/>
uri="newresource_xmlcontent.jsp?page=kedauTemplate" 现在还不知道用来干什么的
如果写成 uri="newresource.jsp?page=kedauTemplate" 则用于表示含有子类型的类型如:(Template Two它含有一系列的子类型 )
order 用于排序的,数大的就会显示在后面