cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve Document Library Documents by custom type

flopez
Champ in-the-making
Champ in-the-making
Hi!

I want to create a yui Datasource that contains a list of items of type="document" and nodetype="my:customtype" I can't find the right webscript to do this, can anyone one point me to the right way to do it.

what I'm trying so far (in a pseudocode way of showing it) is:

new DataSource ( /alfresco/service/slingshot/doclib/doclist/documents/site/MYSITE/documentLibrary )

but this retrieves every single file in the repository, how can I filter this to have only the "my:customtype" documents?

thanks in advance
1 REPLY 1

mikeh
Star Contributor
Star Contributor
The reason you can't find a webscript to do what you want is that one doesn't exist. You'd need to extend the filter.lib.js (currently by overriding it in an amp) to accept a "type" parameter to add to the query.

Thanks,
Mike