Forums » Remove Credits header when there are no credits

RSS feed for this topic

Info

  1. I would like to have the 'Credits' header *not* display in the Exhibits plugin if there are no credits in /plugin/ExhibitBuilder/views/public/exhibits/summary.php.

    Thanks.

  2. You could rewrite it like:

    <?php if($credits = exhibit('credits')): ?>
    <h2>Credits</h2>
    <p><?php echo html_escape($credits); ?></p>
    <?php endif; ?>

    You can do the same thing for description, replace "credits" with "description."

    Thanks, this is a good catch. We'll likely add this to the next version of Exhibit Builder.

  3. Thanks, that does the trick. I did a similar thing for 'Geolocations' when there is no geolocation too.

Reply

You must log in to post.