Custom code for Linked Resources feature

Hello,
I’m looking to add extra metadata in the Linked Resources on item page. Is custom PHP code the only way to achieve this or anyone has different approach?


Thanks,
Lu.

I found the way to add another metadata to Linked resources by add custom code to linked-resources.phtml. you can find this file in /var/www/html/application/view/common.
Adding the code below to to pull in Date metadata.

<?php echo $value['val']->resource()->value('dcterms:date'); ?>

In Omeka S, there are several ways to add metadata to the Linked Resources block on an item page besides using custom PHP. The easiest approach is to override the common/linked-resources.phtml template in your theme by copying it from the core and modifying it to suit your needs. You can also use modules like Metadata Browse or Item Relations, which extend the display of linked resources without writing PHP from scratch. If you need flexibility without deep code intervention, the modular approach via Omeka S events (Zend EventManager) allows you to hook into the rendering process using a listener in your module. You won’t be able to do without PHP entirely, but overriding a template in a theme is the least invasive and most common method.