<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to change default PageSize in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-change-default-pagesize/m-p/323352#M10353</link>
    <description>&lt;P&gt;This is what scare me. Do I really have to override the whole PageProvider for a single property ?&lt;/P&gt;</description>
    <pubDate>Sat, 21 Apr 2012 01:50:55 GMT</pubDate>
    <dc:creator>sake_</dc:creator>
    <dc:date>2012-04-21T01:50:55Z</dc:date>
    <item>
      <title>How to change default PageSize</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-change-default-pagesize/m-p/323350#M10351</link>
      <description>&lt;P&gt;Out of the box, Nuxeo default to 20 items per display page. Users can change that to 50 maximum.
I want to remove pagination at all. Or set items/page to very high number (eg 100000) by default&lt;/P&gt;
&lt;P&gt;What need to be changed for that ?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 10:59:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-change-default-pagesize/m-p/323350#M10351</guid>
      <dc:creator>sake_</dc:creator>
      <dc:date>2012-04-20T10:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to change default PageSize</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-change-default-pagesize/m-p/323351#M10352</link>
      <description>&lt;P&gt;Override the default content view definitions to set the default size you want. Not sure of the limit here, but I tried 1250 (with a big test view) and it worked. The on-screen selector for the items/page should be modified or removed to reflect the new max value, otherwise the 1250 items will be displayed but the screen will show 5 (a little confusing). One thing to keep in mind is the potential for performance issues as the number of documents grows.&lt;/P&gt;
&lt;P&gt;Items/page can be found in content_view_result_layout_selector.xhtml -- to override you'll need to make a contribution.&lt;/P&gt;
&lt;P&gt;Default content view can be overriden through an IDE contribution or directly by placing the override file in the nxserver/config directory and naming it &lt;SOMETHING&gt;-config.xml (e.g., mycontentviews-config.xml). Depending on what you are after you may have to change more than one contentView definition. Make sure to include the &lt;REQUIRE&gt; to ensure you override the default settings. Here's a snippet - with the change required to &lt;PAGESIZE&gt;...&lt;/PAGESIZE&gt;&lt;/REQUIRE&gt;&lt;/SOMETHING&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;component name="com.concena.ecm.webapp.contentview.contrib"&amp;gt;

  &amp;lt;require&amp;gt;org.nuxeo.ecm.webapp.contentview.contrib&amp;lt;/require&amp;gt;
  &amp;lt;extension target="org.nuxeo.ecm.platform.ui.web.ContentViewService"
    point="contentViews"&amp;gt;

    &amp;lt;contentView name="document_content"&amp;gt;

      &amp;lt;title&amp;gt;label.contentview.document_content&amp;lt;/title&amp;gt;
      &amp;lt;translateTitle&amp;gt;true&amp;lt;/translateTitle&amp;gt;
      &amp;lt;showTitle&amp;gt;false&amp;lt;/showTitle&amp;gt;

      &amp;lt;coreQueryPageProvider&amp;gt;
        &amp;lt;property name="coreSession"&amp;gt;#{documentManager}&amp;lt;/property&amp;gt;
        &amp;lt;whereClause docType="AdvancedSearch"&amp;gt;
          &amp;lt;predicate parameter="ecm:fulltext" operator="FULLTEXT"&amp;gt;
            &amp;lt;field schema="advanced_search" name="fulltext_all" /&amp;gt;
          &amp;lt;/predicate&amp;gt;
          &amp;lt;predicate parameter="dc:title" operator="FULLTEXT"&amp;gt;
            &amp;lt;field schema="advanced_search" name="title" /&amp;gt;
          &amp;lt;/predicate&amp;gt;
          &amp;lt;predicate parameter="dc:modified" operator="BETWEEN"&amp;gt;
            &amp;lt;field schema="advanced_search" name="modified_min" /&amp;gt;
            &amp;lt;field schema="advanced_search" name="modified_max" /&amp;gt;
          &amp;lt;/predicate&amp;gt;
          &amp;lt;fixedPart&amp;gt;
            ecm:parentId = ? AND ecm:isCheckedInVersion = 0 AND
            ecm:mixinType !=
            'HiddenInNavigation' AND ecm:currentLifeCycleState
            != 'deleted'
          &amp;lt;/fixedPart&amp;gt;
        &amp;lt;/whereClause&amp;gt;
        &amp;lt;parameter&amp;gt;#{currentDocument.id}&amp;lt;/parameter&amp;gt;
        &amp;lt;sort column="dc:title" ascending="true" /&amp;gt;
        &amp;lt;pageSize&amp;gt;1250&amp;lt;/pageSize&amp;gt;
      &amp;lt;/coreQueryPageProvider&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 21 Apr 2012 00:32:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-change-default-pagesize/m-p/323351#M10352</guid>
      <dc:creator>bruce_Grant</dc:creator>
      <dc:date>2012-04-21T00:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to change default PageSize</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-change-default-pagesize/m-p/323352#M10353</link>
      <description>&lt;P&gt;This is what scare me. Do I really have to override the whole PageProvider for a single property ?&lt;/P&gt;</description>
      <pubDate>Sat, 21 Apr 2012 01:50:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-change-default-pagesize/m-p/323352#M10353</guid>
      <dc:creator>sake_</dc:creator>
      <dc:date>2012-04-21T01:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to change default PageSize</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-change-default-pagesize/m-p/323353#M10354</link>
      <description>&lt;P&gt;It's verbose, but I don't think it's all that scary&lt;/P&gt;</description>
      <pubDate>Sat, 21 Apr 2012 03:19:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-change-default-pagesize/m-p/323353#M10354</guid>
      <dc:creator>bruce_Grant</dc:creator>
      <dc:date>2012-04-21T03:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to change default PageSize</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-change-default-pagesize/m-p/323354#M10355</link>
      <description>&lt;P&gt;Just did that. But I have a feeling that this is somewhat brittle because now I'm responsible for those nxquery predicates (and other little stuffs).  Also I'm still cannot be able to override the&lt;/P&gt;</description>
      <pubDate>Sat, 21 Apr 2012 03:52:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-change-default-pagesize/m-p/323354#M10355</guid>
      <dc:creator>sake_</dc:creator>
      <dc:date>2012-04-21T03:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to change default PageSize</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-change-default-pagesize/m-p/323355#M10356</link>
      <description>&lt;P&gt;The default max page size can be controlled by a framework property on future version 5.6, backported on maintenance branches for versions 5.4.2 and 5.5, see &lt;A href="https://jira.nuxeo.com/browse/NXP-9052" target="test_blank"&gt;https://jira.nuxeo.com/browse/NXP-9052&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2012 11:41:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-change-default-pagesize/m-p/323355#M10356</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2012-06-04T11:41:18Z</dc:date>
    </item>
  </channel>
</rss>

