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'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

Using a thumbnail in a ManyManyDOM


Go to End


2 Posts   1603 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.