Creating Custom Route in Theme


#1

I’m getting requests from patrons to make an additional browse button for one of our Omeka instances.

Basically, it browses only certain items of certain categories they’re giving me a list of. Long story short-
I want to create a category.php and be able to have it work as such.

site.edu/items/category

Obviously placing the file in the items directory showed me that there is no routing option for custom named files. So I was wondering, how do you create this?


#2

You’ll likely have to create an Omeka Plugin to define the route. You may want to look at an existing plugin such as SimplePages to get an idea as to how everything works.