Mediablock and caption / description?

trstn

Joined: 2010-06-14
Posts: 27
Posted: Thu, 2011-04-28 16:45

Back again with more questions :)

Is there a way to use mediablock for gallery display and include the image caption/description as a tooltip or inside a div somehow for display within the page?

I know there's a switch to include the title, but description would be the grail for me.

thanks

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2011-04-28 17:07

mediaBlock line ~504:

    if (isset($_REQUEST['showTitle']) && $_REQUEST['showTitle'] == 1) {
        $title = '<h4 class="giDescription">'.getTitle($item).'</h4>';
    } else {
        $title = '';
    }

to:

    if (isset($_REQUEST['showTitle']) && $_REQUEST['showTitle'] == 1) {
        $title = '<h4 class="giDescription">'.$item->getDescription().'</h4>';
    } else {
        $title = '';
    }

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
trstn

Joined: 2010-06-14
Posts: 27
Posted: Thu, 2011-04-28 18:51

Legendary, thanks so much suprsidr.