Forums » Exhibit Order

RSS feed for this topic

Info

  1. Hi:
    I understand that exhibits are displayed in the order in which they are created. We're hoping to figure out a way to reorder those exhibits, as we've created some exhibits which chronologically happened earlier than the first exhibit on the list. Is there a way to do this?
    Thanks.
    Kathleen Ryan

  2. I don't think there is any way to reorder exhibits on the exhibit browse page from the administrative panel.

    You could try replacing the <div id="exhibits"> section of the Exhibit Builder/views/public/exhbits/browse.php page with code that sets each exhibit and passes the id number as an integer value in the exhibit_builder_get_exhibit_by_id($exhibitId) function, like this..

    <?php set_current_exhibit(exhibit_builder_get_exhibit_by_id(2));?>
    
        <div class="exhibit">
         <h2><?php echo link_to_exhibit(); ?></h2>
           <div class="description"><?php echo exhibit('description'); ?></div>
        	<p class="tags"><?php echo tag_string(get_current_exhibit(), uri('exhibits/browse/tag/')); ?></p>
        	</div>'
    
    And since you are giving up the loop items function, you would need to repeat the code and assign a numeric value for each exhibit.
    <?php set_current_exhibit(exhibit_builder_get_exhibit_by_id(1));?>
    <div class="exhibit">
    <h2><?php echo link_to_exhibit(); ?></h2>
    <div class="description"><?php echo exhibit('description'); ?></div>
    <p class="tags"><?php echo tag_string(get_current_exhibit(), uri('exhibits/browse/tag/')); ?></p>
    </div>`

    This might be tedious if you have a lot of exhibits, but it's one way to do it.

Reply

You must log in to post.