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.
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
DataObjectManager Module /
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba
tooltip-info popup issue with imagedataobjectmanager
That doesn't sound right. Can I see your code?
Hi UncleCheese, thanks for the quick reply. Here is my code.
Gallery page.
http://codepad.org/kfI0aPVB
Gallery image object
http://codepad.org/7COibxt7
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);}
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 ^_^ )