I want to remove thumbnails in item show pages for items with the item type 'Person', but continue the current display for all other item types. What is the best way to go about doing that?
I'm guessing I would need to edit the items\show.php file in my theme, perhaps using the item_has_type function?
Thanks!
item_has_type
is an old function from Omeka 1.5. The current approach is to use metadata()
. But yes, it would be editing items/show.php
in your theme, and just putting an if statement around the code in the theme that shows the images:
<?php if(metadata('item', 'Item Type Name') != 'Person'): ?>
//code that shows the files
<?php endif; ?>
Thank you for the solution!!