THS
November 3, 2024, 9:03pm
1
On my Collections page, there’s a column on the right side showing (random?) Collection Items. Can I get rid of that column?
https://topangahistoricalsociety.org/archive/collections/show/9
I’m using the Emiglio Theme. Thanks!
Hi @THS ,
It doesn’t look to me like there is a settings to prevent the collection items from displaying, but you can always edit your them to remove the code that displays them.
<h2><?php echo __('Contributor(s)'); ?></h2>
<div class="element-text">
<ul>
<li><?php echo metadata('collection', array('Dublin Core', 'Contributor'), array('delimiter'=>'</li><li>')); ?></li>
</ul>
</div>
</div><!-- end collectors -->
<?php endif; ?>
<?php echo fire_plugin_hook('public_collections_show', array('view' => $this, 'collection' => $collection)); ?>
</div>
<div id="secondary">
<div id="collection-items">
<h2><?php echo __('Collection Items'); ?></h2>
<?php $collectionItems = get_records('item', array('collection' => $collectionId), 3); ?>
<?php foreach (loop('items', $collectionItems) as $item): ?>
<h3><?php echo link_to_item(metadata($item, array('Dublin Core', 'Title')), array('class'=>'permalink'), 'show', $item); ?></h3>
<?php if (metadata($item, 'has files')): ?>
<div class="item-img">
<?php echo link_to_item(item_image(null, array('alt'=>metadata($item,array('Dublin Core', 'Title'))))); ?>