Zoom.it 2.0 viewer on top if Item show page


I am using version 2.0.4 and I wondered if it was possible to move the zoom.it viewer to the top of the page instead of displaying a plain jpeg without having to click the link to open the zoom.it viewer.

Basically, is it possible to have the zoomable image at the top of an item's page?


I think that's possible, but could cause problems due to duplication.

In your theme's items/show.php file, the code that displays content from all the plugins that add to the display is this near the bottom:

<?php fire_plugin_hook('public_items_show', array('view' => $this, 'item' => $item)); ?>

If you want to only show zoom.it content, you could use this similar line at the top of the page:

<?php echo get_specific_plugin_hook_output('ZoomIt','public_items_show', array('view' => $this, 'item' => $item)); ?>

In that case, the Zoomit content would be duplicated. I haven't tried this yet, but I worry that because of how ZoomIt interacts with the page it might break one or both of the displays.

If ZoomIt is the only plugin you are using that adds content to the item page, then you simply remove the general fire_plugin_hook function from the bottom.

If you have more than one plugin adding content, you would have to fire each plugin's specific hook individually.

Hmm, I gave the first option a try (showing only zoomit content) and nothing changed, the zoomit viewer is at the bottom. Am I doing something wrong?

I'm using the Seasons theme and placing:
<?php echo get_specific_plugin_hook_output('ZoomIt','public_items_show', array('view' => $this, 'item' => $item)); ?>


<?php echo all_element_texts('item'); ?>
; ?>


!-- The following returns all of the files associated with an item. -->


I am using version 2.0 and this solution don´t work

is it possible in this version Omeka?


if the theme that i choice is the default theme this don´t have the file show.php where can I make put this line <?php echo get_specific_plugin_hook_output('ZoomIt','public_items_show', array('view' => $this, 'item' => $item)); ?> ?