<?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: Navigation tree size in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/navigation-tree-size/m-p/324457#M11458</link>
    <description>&lt;P&gt;In Nuxeo 5.4.2 and beyond this can be done by overriding the &lt;CODE&gt;tree_children&lt;/CODE&gt; PageProvider and changing the &lt;CODE&gt;pageSize&lt;/CODE&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; &amp;lt;require&amp;gt;org.nuxeo.ecm.webapp.pageproviders.contrib&amp;lt;/require&amp;gt;

 &amp;lt;extension target="org.nuxeo.ecm.platform.query.api.PageProviderService"
    point="providers"&amp;gt;
    &amp;lt;coreQueryPageProvider name="tree_children"&amp;gt;
      &amp;lt;pattern&amp;gt;
        SELECT * FROM Document WHERE ecm:parentId = ? AND ecm:isProxy = 0 AND
        ecm:mixinType = 'Folderish' AND ecm:mixinType != 'HiddenInNavigation'
        AND ecm:isCheckedInVersion = 0 AND ecm:currentLifeCycleState !=
        'deleted'
      &amp;lt;/pattern&amp;gt;
      &amp;lt;sort column="dc:title" ascending="true" /&amp;gt;
      &amp;lt;pageSize&amp;gt;50&amp;lt;/pageSize&amp;gt;
    &amp;lt;/coreQueryPageProvider&amp;gt;
  &amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In Nuxeo 5.4.1 and earlier you had to override the &lt;CODE&gt;TREE_CHILDREN&lt;/CODE&gt; QueryModel and provide a new &lt;CODE&gt;max&lt;/CODE&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;require&amp;gt;org.nuxeo.ecm.webapp.querymodel.DefaultQueryModels&amp;lt;/require&amp;gt;

  &amp;lt;extension target="org.nuxeo.ecm.core.search.api.client.querymodel.QueryModelService"
    point="model"&amp;gt;
    &amp;lt;queryModel name="TREE_CHILDREN"&amp;gt;
      &amp;lt;pattern&amp;gt;
        SELECT * FROM Document WHERE ecm:parentId = ? AND ecm:isProxy = 0 AND
        ecm:mixinType = 'Folderish' AND ecm:mixinType != 'HiddenInNavigation'
        AND ecm:isCheckedInVersion = 0 AND ecm:currentLifeCycleState !=
        'deleted'
      &amp;lt;/pattern&amp;gt;
      &amp;lt;sortable defaultSortAscending="true"
        defaultSortColumn="dc:title" value="true" /&amp;gt;
      &amp;lt;max&amp;gt;50&amp;lt;/max&amp;gt;
    &amp;lt;/queryModel&amp;gt;
  &amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 06 Jul 2011 18:25:21 GMT</pubDate>
    <dc:creator>Florent_Guillau</dc:creator>
    <dc:date>2011-07-06T18:25:21Z</dc:date>
    <item>
      <title>Navigation tree size</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/navigation-tree-size/m-p/324456#M11457</link>
      <description>&lt;P&gt;How do I change the left-hand navigation tree to display more than 50 children for a folder?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2011 17:54:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/navigation-tree-size/m-p/324456#M11457</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2011-07-06T17:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Navigation tree size</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/navigation-tree-size/m-p/324457#M11458</link>
      <description>&lt;P&gt;In Nuxeo 5.4.2 and beyond this can be done by overriding the &lt;CODE&gt;tree_children&lt;/CODE&gt; PageProvider and changing the &lt;CODE&gt;pageSize&lt;/CODE&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; &amp;lt;require&amp;gt;org.nuxeo.ecm.webapp.pageproviders.contrib&amp;lt;/require&amp;gt;

 &amp;lt;extension target="org.nuxeo.ecm.platform.query.api.PageProviderService"
    point="providers"&amp;gt;
    &amp;lt;coreQueryPageProvider name="tree_children"&amp;gt;
      &amp;lt;pattern&amp;gt;
        SELECT * FROM Document WHERE ecm:parentId = ? AND ecm:isProxy = 0 AND
        ecm:mixinType = 'Folderish' AND ecm:mixinType != 'HiddenInNavigation'
        AND ecm:isCheckedInVersion = 0 AND ecm:currentLifeCycleState !=
        'deleted'
      &amp;lt;/pattern&amp;gt;
      &amp;lt;sort column="dc:title" ascending="true" /&amp;gt;
      &amp;lt;pageSize&amp;gt;50&amp;lt;/pageSize&amp;gt;
    &amp;lt;/coreQueryPageProvider&amp;gt;
  &amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In Nuxeo 5.4.1 and earlier you had to override the &lt;CODE&gt;TREE_CHILDREN&lt;/CODE&gt; QueryModel and provide a new &lt;CODE&gt;max&lt;/CODE&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;require&amp;gt;org.nuxeo.ecm.webapp.querymodel.DefaultQueryModels&amp;lt;/require&amp;gt;

  &amp;lt;extension target="org.nuxeo.ecm.core.search.api.client.querymodel.QueryModelService"
    point="model"&amp;gt;
    &amp;lt;queryModel name="TREE_CHILDREN"&amp;gt;
      &amp;lt;pattern&amp;gt;
        SELECT * FROM Document WHERE ecm:parentId = ? AND ecm:isProxy = 0 AND
        ecm:mixinType = 'Folderish' AND ecm:mixinType != 'HiddenInNavigation'
        AND ecm:isCheckedInVersion = 0 AND ecm:currentLifeCycleState !=
        'deleted'
      &amp;lt;/pattern&amp;gt;
      &amp;lt;sortable defaultSortAscending="true"
        defaultSortColumn="dc:title" value="true" /&amp;gt;
      &amp;lt;max&amp;gt;50&amp;lt;/max&amp;gt;
    &amp;lt;/queryModel&amp;gt;
  &amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Jul 2011 18:25:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/navigation-tree-size/m-p/324457#M11458</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2011-07-06T18:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Navigation tree size</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/navigation-tree-size/m-p/324458#M11459</link>
      <description>&lt;P&gt;Moreover, note that since Nuxeo 5.4.2 you can also contribute a maxPageSize in a coreQueryPageProvider.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2011 14:21:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/navigation-tree-size/m-p/324458#M11459</guid>
      <dc:creator>ataillefer_</dc:creator>
      <dc:date>2011-11-15T14:21:16Z</dc:date>
    </item>
  </channel>
</rss>

