Forums » adding images to exhibit main page

RSS feed for this topic

Info

  1. Is there a way to easily add an image to an exhibit's main page? We are converting our onsite exhibits into online ones and would like to be able to use a poster or an image on the main page.

  2. If the image is an item in the archive, you can modify the exhibit_theme's summary.php template file, and get that item object directly using something like this:

    <?php
    set_current_item(get_item_by_id(4)); // Get the item with an ID equal to 4, and set it as the current item.
    
    echo item_fullsize(); // Echo the fullsize image for the first file associated with the item
    
    ?>

    Or, you can add the image as a background image with the CSS if the image is not an item, or if you prefer modifying the CSS.

    Good luck!
    Sheila

Reply

You must log in to post.