Hi.
I've developed a search plugin that combines DC:titles and some other fields from special item types, has an autocomplete dropdown etc. It works well.
This plugin (Quickie) has an items controller that extends Omeka_Controller_AbstractActionController. In my items controller, there's a browseAction() that does the backend searching and returns the items to the viewer
$this->view->items = $items;
In the viewer, I have a regular loop that goes through the items and presents them in accordance with my theme.
<?php foreach (loop('items') as $item):?>
blah blah
<?php endforeach;?>
My plugin is reachable under /blahblah.com/quickie/...
Now, the only trouble is that sometimes I get many results and I would like them to be shown paginated. But echoing pagination_links etc. doesn't do anything useful. I always get all the items shown.
How and where can I make sure that the looped items displayed by my plugin actually follow the system's pagination settings (no of items per page) and show pagination if the number of items returned is larger than the number of items per page?
All best,
Toma