Tweaking Poster Plugin

Good Afternoon,

We are trying to use the Poster Plugin but want to tweak the display to show the title as well as two other metadata fields. Is this possible? If so, should the change be made here:
plugin-Posters/views/public/posters/show.php?

        <?php if ($pageLayout == 'static'): ?>
                <div class="poster-item">
                    <h3><?php echo link_to_item(metadata($posterItem, array('Dublin Core', 'Title')), array(), 'show', $posterItem); ?></h3>
                    <div class='grid-caption'>
                        <?php echo $posterItem->caption; ?>
                    </div>
                </div>
            <?php endif; ?>
        <?php else: ?>
            <?php if ($pageLayout == 'carousel'): ?>
                <div class="text-only">
                    <h3><?php echo link_to_item(metadata($posterItem, array('Dublin Core', 'Title')), array(), 'show', $posterItem); ?></h3>
                    <div class='bx-caption'>
                        <?php echo $posterItem->caption; ?>
                    </div>
                </div>
            <?php else: ?>
                <h3><?php echo link_to_item(metadata($posterItem, array('Dublin Core', 'Title')), array(), 'show', $posterItem); ?></h3>
                <div class='grid-caption'>
                    <?php echo $posterItem->caption; ?>
                </div>
            <?php endif; ?>

Thank you in advance for any help you can offer.

Kind regards,

You’ve pretty much got it right on where you’d want to make your change.

If you’re only using one of the poster layouts, you can just make the change in that section, or you can change each of the “static”, “carousel” and “other” sections if you’re using more than one.

You’d be looking to add extra lines for printing your extra metadata fields, something like (just for example to display Dublin Core Subject):

<?php echo metadata($posterItem, array('Dublin Core', 'Subject')); ?>

You can directly change the file in plugins/Posters/views/public/posters/show.php, or you can copy that file into your theme at themes/your-theme/posters/posters/show.php, and edit it there.

It seems that I will also need to edit the lines below but I am not sure how to reference multiple arrays i.e. title, creator, relation etc.

<?php 
                foreach($posterItem->Files as $itemFile) {
                    if($itemFile->hasThumbnail()){
                        echo link_to_item(
                            item_image(
                                $defaultType,
                                array(
                                    'title' => metadata($posterItem, 
                                    array(
                                        'Dublin Core', 
                                        'Title'
                                    )
                                ), 

Not sure if I am stating this correctly but what would be the correct syntax for adding multiple arrays? I certainly appreciate any help or insight you can provide. Thank you.