Filtering items in browse

Hi,

I am trying to filter the items shown in the default browse page. I know that I can do this by adding search terms in the url to something like omeka/items/browse?type=21, but I would like to filter omeka/items/browse automatically without changing the url. Any advice on how to do this?

Thanks,
Jacob

The best way to make this change is probably to write a small plugin.

The items_browse_params filter will let you either always force a specific type browse param, or set a default one if none is specified in the URL.

Thanks John, that is almost exactly what I want, however the plugin also filters the browse results in the admin view, which I don't want to do. Is there a way to set the parameters just for the admin?

The easiest thing to do is just check whether you're on the admin or public side with is_admin_theme in your filter, and only actually apply your changes if that returns false.

Thanks, that was exactly what I was looking for!