Display Sub-Album Descriptions

I'm using zpbootstrap, and have pages displaying sub-album thumbnails. The Titles display underneath the thumbnails, but I also wish to display the Descriptions. Can I do this? (Sorry if I've missed the answer in the User Guide).

Comments

  • acrylian Administrator, Developer
    edited October 20

    You will need to modify the theme. Within the next_album loop on a theme's album.php you can use any function that also works for the album itself. Examples in the included basic theme and on the demo theme linked from the theming tutorial.

  • fretzl Administrator, Developer
    edited October 20

    I see different possibilities and I'm not sure which is best. Try this:

    In inc_print_image_thumb.php find the first occurrence of

    <div class="hidden caption"> (line 31) and remove the hidden class

    so it becomes

    <div class="caption">.

    Then at the bottom of the page find:

    <a href="<?php echo html_encode(getImageURL()); ?>" title="<?php echo html_encode(getBareImageTitle()); ?>">
        <h5><?php printBareImageTitle(); ?></h5>
    </a>
    

    and change it into a conditional:

    <a href="<?php echo html_encode(getImageURL()); ?>" title="<?php echo html_encode(getBareImageTitle()); ?>">
        <?php if ( !isImagePhoto() ) { ?>
                <h5><?php printBareImageTitle(); ?></h5>
        <?php } ?>
    </a>
    

    This is not thoroughly tested and may have unwanted side effects.

Sign In or Register to comment.