Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

tooltip-info popup issue with imagedataobjectmanager


Reply


5 Posts   1120 Views

Avatar
Ben_W

Community Member, 80 Posts

30 April 2010 at 12:29pm

Edited: 30/04/2010 12:30pm

I have used the imagedataobjectmanager to build a image gallery. when I move the mouse over each individual image, there is a js event, which is trigger to display the original image that's uploaded to the server. Now some of those images are as big as 900x600, so that the pupup tooltip-info can't contain it and most of the image goes out of the browser boundary. My question is if there is a way to turn off this tooltip-info popup feature. Thank you.

Avatar
UncleCheese

4085 Posts

30 April 2010 at 12:57pm

That doesn't sound right. Can I see your code?

Avatar
Ben_W

Community Member, 80 Posts

30 April 2010 at 1:39pm

Hi UncleCheese, thanks for the quick reply. Here is my code.

Gallery page.
http://codepad.org/kfI0aPVB

Gallery image object
http://codepad.org/7COibxt7

Avatar
UncleCheese

4085 Posts

30 April 2010 at 1:58pm

Yeah, look what you're passing into your headings array:

array(
            'GalleryImage' => 'Gallery Image'
         ),

Of course you're going to get huge images.. you're passing the image as is with no resizing!

Try creating a custom getter that will return a nicely formatted image rather than just dumping out the raw data.

array ('TooltipThumbnail' => '');

public function getTooltipThumbnail() {return $this->GalleryImage()->CroppedResize(75,75);}

Avatar
Ben_W

Community Member, 80 Posts

30 April 2010 at 4:52pm

Hi UncleCheese, Thank you for your help. I have managed to get it fixed follow your instructions.
For people who might run into the same problem here is what I did. (Don't you hate ppl just leave a post saying problem solved, but not posting the actual solutions ^_^ )

http://codepad.org/hP9e4pCA
http://codepad.org/QPm4c1pU