Display only certain Item types

Hello omekans,
Im trying to add a section in my Home, similar to the "Recently Added Items" Omeka has for default, but displaying only certain item type (Event).

How can I do it? I read that I need to make a plugin for this, I made it but cant find how to filter the item type.

There are many functions described in the Omeka Documentation, but I cant find where to apply them or how to use them for that purpose.

Help please!


You'd be using the get_records function, with 'Item' as the record type. The second argument, params, is where you'd specify the item type to look for, by passing an array with a key 'item_type' and a value of the name or ID of the item type you want to filter on.