博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
关于添加待入库文件列表内容
阅读量:7115 次
发布时间:2019-06-28

本文共 2873 字,大约阅读时间需要 9 分钟。

  hot3.png

1.在webapp-core包action文件中添加一个tab,并且给予一定的filter <action id="STORED_CONTENT" link="/incl/tabs/document_content_stored.xhtml" order="10" label="action.view.stored.content" icon="/icons/file.gif" accessKey="d" type="rest_document_link"> <category>VIEW_ACTION_LIST</category> <!-- NXP-12715: use same tab on workspaces and sections --> <!-- <filter-id>outSection</filter-id> --> <filter-id>view_content</filter-id> <filter-id>storeview_content</filter-id> <filter-id>storeview_content_folder</filter-id> <properties> <property name="ajaxSupport">true</property> </properties> </action>

<filter id="storeview_content"> <rule grant="true"> <condition>#{currentUser.isMemberOf('wnStorekeepers')}</condition> </rule> </filter>

wnWorkspace

2.在webapp中incl/tab中新加一个xhtml:document_content_stored.xhtml <ui:composition xmlns="" xmlns:ui="" xmlns:c="" xmlns:nxu="">

<c:if test="#{currentDocument.currentLifeCycleState != 'deleted'}"> <ui:include src="/incl/document_actions.xhtml" /> <c:choose> <c:when test="#{documentContentViewActions.hasContentViewSupport(currentDocument, 'storecontent')}"> <ui:include src="/incl/document_content_view.xhtml"> <ui:param name="contentViewCategory" value="storecontent" /> </ui:include> </c:when> <c:otherwise> <nxu:set var="contentViewName" value="document_stored_content"> <ui:decorate template="/incl/content_view.xhtml" /> </nxu:set> </c:otherwise> </c:choose> </c:if>

<c:if test="#{currentDocument.currentLifeCycleState == 'deleted'}"> <ui:include src="/incl/tabs/document_trash_content.xhtml" /> </c:if>

</ui:composition> 3.在webapp-base的ecm-types-contrib.xml文件中,添加的文档类型的contentViewCategory <contentViews category="storecontent"> <contentView>document_stored_content</contentView> </contentViews> 4.在webapp-base的contentviews-contrib.xml文件中,添加contentview的定义

<contentView name="document_stored_content">

label.contentview.document_content  
true
false
#{documentManager}
DEFAULT_NAVIGATION_RESULTS
ecm:parentId = ? AND ecm:isCheckedInVersion = 0 AND ecm:mixinType != 'HiddenInNavigation' AND ecm:currentLifeCycleState = 'archived'
#{currentDocument.id}
20
true
true
true
documentChanged
documentChildrenChanged
#{currentDocument.id}
10
CURRENT_SELECTION

5.lang包中添加本地化 action.view.stored.content=\u5f85\u5165\u5e93\u6587\u4ef6\u5217\u8868

转载于:https://my.oschina.net/lccchn/blog/727860

你可能感兴趣的文章
初识Hadoop
查看>>
面向对象和类
查看>>
经常被问到的面试题1
查看>>
PHP Warning: 的解决方法
查看>>
Opacity函数-transparentize()、 fade-out()函数
查看>>
产品生产成本核算中,生产订单差异计算逻辑及生产订单成本公式
查看>>
代码整洁之道-第5章-格式-读书笔记
查看>>
Siebel Performance for Script <1>
查看>>
【转载】SEO为什么要求网页设计师用DIV+CSS布局网页?
查看>>
webstorm命令行无法使用node-gyp进行编译
查看>>
c#静态构造函数
查看>>
Spring依赖注入的三种方式
查看>>
可能博客园最后一篇随笔
查看>>
Linux Oracle 中文乱码解决
查看>>
POJ2151-Check the difficulty of problems
查看>>
定时提醒实现
查看>>
理解Java多态
查看>>
兔耳效应
查看>>
webpack基础配置
查看>>
初识python: while循环 猜年龄小游戏
查看>>