在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 用于排序的,数大的就会显示在后面

 

 

相关文章:

  • 2021-07-15
  • 2021-05-03
  • 2021-10-01
  • 2021-06-28
  • 2021-05-15
  • 2022-12-23
  • 2021-04-17
  • 2021-10-16
猜你喜欢
  • 2021-12-16
  • 2021-12-12
  • 2021-05-31
  • 2022-12-23
  • 2021-08-12
  • 2021-12-28
  • 2022-12-23
相关资源
相似解决方案