Hi all,
I’m trying to write a plugin to change the number of browse items on a page.
I’m using Omeka v2.3.1 (can’t update, right now for operational reasons).
I’m familiar with PHP, but not coded a plugin for Omeka before
This is what I’ve got in plugin.php:
Preformatted text
<?php
class EditDisplayPerPage extends Omeka_Plugin_AbstractPlugin
{
protected $_filters = array(
‘s_browse_per_page’,
);
public function filterSBrowsePerPage($perPage, $args)
{
return 100;
}
}
?>Preformatted text
It installs, but I’m getting 10 items per page.
Can anyone figure out what the issue is?
Is there something wrong with the camelcased name for my function?
I’m using the filter name ‘s_browse_per_page’ instead of the older ‘items_browse_per_page’. Is that correct for v2.3.1?
Thanks!