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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Using a thumbnail in a ManyManyDOM


Go to End


2 Posts   1393 Views

Avatar
Howard

Community Member, 215 Posts

22 September 2009 at 4:35pm

Hey nothing to critical here but thought I would ask. I am using the snippet outlined here http://ssbits.com/adding-a-thumbnail-to-a-dataobjectmanager-or-complex-table-field/ to add a thumbnail to the DOM and it works however if I try to add it to a ManyManyDOM then it breaks with a error of:

Unknown column 'Thumbnail' in 'field list'
IN POST /ss/admin/getitem?ID=1&ajax=1
Line 401 in /hsphere/local/home/sgoodlas/dcbc.co.nz/ss/sapphire/core/model/MySQLDatabase.php

Out of interest I tried it in a ManyManyCTF and it worked as expected.

Thanks :)

Avatar
UncleCheese

Forum Moderator, 4102 Posts

23 September 2009 at 1:00am

That post is incorrect. The function should read getThumbnail(), not Thumbnail(). I made Aram aware of that when he posted it.