Platform Explorer / Nuxeo Platform LTS 2015 7.10

Contribution org.nuxeo.ecm.platform.forum.contentviews--contentViews

This contribution is part of XML component org.nuxeo.ecm.platform.forum.contentviews inside nuxeo-platform-forum-7.10.jar /OSGI-INF/forum-contentviews-contrib.xml

Extension point

Extension point contentViews of component ContentViewService.

Contributed items

  • <contentView name="forum_content">
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <property name="maxResults">DEFAULT_NAVIGATION_RESULTS</property>
            <pattern>
              select * from Document where ecm:parentId = ? AND
              ecm:isCheckedInVersion = 0 AND
              ecm:mixinType != 'HiddenInNavigation'
              AND ecm:currentLifeCycleState !=
              'deleted'
            </pattern>
            <parameter>#{currentDocument.id}</parameter>
            <sort ascending="true" column="dc:title"/>
            <pageSize>20</pageSize>
          </coreQueryPageProvider>
    
          <showPageSizeSelector>true</showPageSizeSelector>
          <useGlobalPageSize>false</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheKey>#{currentDocument.repositoryName}_#{currentDocument.id}</cacheKey>
          <cacheSize>10</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="forum_listing_ajax" showCSVExport="false" showPDFExport="false" showSyndicationLinks="true" title="document_listing" translateTitle="true"/>
          </resultLayouts>
    
          <selectionList>CURRENT_SELECTION</selectionList>
          <actions category="CURRENT_SELECTION_LIST"/>
    
        </contentView>

XML source

<extension point="contentViews" target="org.nuxeo.ecm.platform.ui.web.ContentViewService">

    <contentView name="forum_content">

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <property name="maxResults">DEFAULT_NAVIGATION_RESULTS</property>
        <pattern>
          select * from Document where ecm:parentId = ? AND
          ecm:isCheckedInVersion = 0 AND
          ecm:mixinType != 'HiddenInNavigation'
          AND ecm:currentLifeCycleState !=
          'deleted'
        </pattern>
        <parameter>#{currentDocument.id}</parameter>
        <sort ascending="true" column="dc:title"/>
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>false</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheKey>#{currentDocument.repositoryName}_#{currentDocument.id}</cacheKey>
      <cacheSize>10</cacheSize>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="forum_listing_ajax" showCSVExport="false" showPDFExport="false" showSyndicationLinks="true" title="document_listing" translateTitle="true"/>
      </resultLayouts>

      <selectionList>CURRENT_SELECTION</selectionList>
      <actions category="CURRENT_SELECTION_LIST"/>

    </contentView>

  </extension>