Hello,

I have an special Folder Document which only contains one type of document, and 
when I go into that special Folder, I want that the documents which it 
contains, displays ordered by a date field. This field is not dc:modified or 
dc:created, but a field of my own schema (cr:date).

I have tried to create a queryModel contribution, using the same farm which 
uses the default queryModel for Folders (CURRENT_DOC_CHILDREN). But, though 
results are displayed, pagination does not work neither the sort. That is, I 
can only see first page of documents, they are not ordered by my field, and I 
cannot sort them by any of the fields displayed in the table

My contribution:

<queryModel name="CURRENT_DOC_CHILDREN_CORRESPONDENCIA">
      <pattern>
        SELECT * FROM Document WHERE ecm:parentId = ? AND ecm:isCheckedInVersion
        = 0 AND ecm:mixinType != 'HiddenInNavigation' AND
        ecm:currentLifeCycleState != 'deleted'
      </pattern>
      <sortable value="true" defaultSortColumn="cr:fecha"
        defaultSortAscending="false" />
      <max>20</max>

      <!--
        <whereClause>
        
        <predicate parameter="ecm:parentId" operator="=">
        <field schema="browsing_filters" name="query_parentId" />
        </predicate>
        </whereClause>
      -->
    </queryModel>


  <extension target="org.nuxeo.ecm.webapp.pagination.ResultsProviderService"
    point="model">

        <resultsProvider name="CURRENT_DOC_CHILDREN_CORRESPONDENCIA" 
farm="documentChildrenSearchFarm"/>

  </extension>


Any idea??

Thanks in advance
--
Posted by "franciscogonzalez" at Nuxeo Discussions 
<http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=3942#12053>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to