Hi,
I am customizing a theme and I would like to display a random featured item on the index page, but I would like to display the entire description, as well as the tags and some metadata. Is this possible? I'm sorry if this is a silly question---I'm relatively new at this!
I've tried a number of things, but this is my current code for it, which only displays a snippet of description.
<?php if (get_theme_option('Display Featured Item') !== '0'): ?>
<h2><?php echo __('Featured Item'); ?></h2>
<p><?php echo random_featured_items(1); ?></p>
<?php endif; ?>
Without editing core code it doesn't appear possible. In the \omeka-2.4\application\views\scripts\items\single.php file is where the snippet length is controlled. It is set at 150 character length.
Pretty much any file under application/views/scripts
can be overridden by placing a copy of it in a parallel location in your theme, and editing that copy.
So, you can make a copy of application/views/scripts/items/single.php and put it in themes/[your-theme]/items/single.php, and then you'll be able to edit the snippet length without editing the core code.
Thank you thank you thank you!
Thank you John! I didn't know this, very good info to know...