Hum, I don't think you can do it with studio.
In fact, you need to make an xml file which will override the existing 
querymodel.
For example : 
=======  my-querymodel-contrib.xml :
<?xml version="1.0"?>
<component name="com.mycaompany.querymodel">
<require>org.nuxeo.ecm.webapp.querymodel.DefaultQueryModels</require>           
     <------------------ This line makes the defautl query-model to be loaded 
before yours (so you can override)

<extension
                
target="org.nuxeo.ecm.core.search.api.client.querymodel.QueryModelService"
                point="model">
<queryModel name="TREE_CHILDREN">
      <pattern>
        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'
      </pattern>
      <sortable value="true" defaultSortColumn="dc:title"
        defaultSortAscending="true" />
      <max>100</max>   <--------- the only line that change from the original 
contribution
    </queryModel>
</extension>
===============
So this is what you have to do. However you need to generate a bundle that 
contains this component. So yes, you need a dev environment with maven etc. to 
generate the .jar
The developer book might be useful : 
http://doc.nuxeo.com/display/NXDOC/Developer+Guide

P.S: Maybe you can do that with studio, I don't know.
--
Posted by "ganie" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=3957#12113>
_______________________________________________
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