Documentation
PAGINATE
usage
<SEARCH>
<object>
...
</object>
<PAGINATE display="number" page="number"/>
</SEARCH>
paramètres
@display, @page
<PAGINATE> can be used to take only a portion of the whole set of objects matching your criteria.
Ex: you want to take the last 10 news.
Ex: you want to take the 5 first visuals of a diaporama.
display is the number of elements you want to get back.
page is the "portion" you want to take : 1 for the first portion, 2 for the second portion, 3 for the third portion, etc.
Be careful to place the PAGINATE node INSIDE the SEARCH node.
exemples
<SEARCH>
<MEDIA>
<INFO>
<MEDIATYPE operator="=">News</MEDIATYPE>
</INFO>
</MEDIA>
<RETURN>
<INFO />
<DESCRIPTIONS>
<DESCRIPTION>
<TITLE />
</DESCRIPTION>
</DESCRIPTIONS>
<CATEGORIES />
</RETURN>
<SORT order="ascending" select="INFO/CREATIONDATE" data-type="text" />
<PAGINATE display="5" page="1"/>
</SEARCH>