UploadField: Choose existing doesn't show thumbnails

142 views
Skip to first unread message

Uncle Cheese

unread,
Aug 9, 2012, 2:43:33 PM8/9/12
to silverst...@googlegroups.com
I just get filenames when I click "choose existing." What is the change that is needed to make it behave more like the AssetAdmin table, where thumbnails are shown in the left column?

Jakob Kristoferitsch

unread,
Aug 12, 2012, 1:42:55 PM8/12/12
to silverst...@googlegroups.com
Hi Uncle Cheese,
have a look at this bug: http://open.silverstripe.org/ticket/7738

HTH
Jakob

micschk

unread,
May 15, 2013, 9:26:46 AM5/15/13
to silverst...@googlegroups.com
This thread's quite old but as thumbnails still don't show in the "Choose existing" GridField of an UploadField, I'm using a tiny extension (which might come handy to others arriving here through Google);

class ImageExtension extends DataExtension {

public static $summary_fields = array(
'StripThumbnail' => 'Thumbnail',
'Name' => 'Name',
'Title' => 'Title',
);
 
}

Nicolaas Thiemen Francken - Sunny Side Up

unread,
May 15, 2013, 5:06:50 PM5/15/13
to silverst...@googlegroups.com
are you saying that by adding this extension to images, the thumbnail shows in the gridfield "select existing image"? Sounds great - add to core?

Jonathon Menz

unread,
Jun 4, 2013, 6:18:58 PM6/4/13
to silverst...@googlegroups.com, n...@sunnysideup.co.nz, ma...@sunnysideup.co.nz
Hi guys, I've submitted a couple of pull requests which hopefully solves this issue.

https://github.com/silverstripe/silverstripe-framework/pull/2044
https://github.com/silverstripe/silverstripe-cms/pull/76
Screen Shot 2013-06-04 at 4.15.34 PM.png

Michael van Schaik

unread,
Jun 5, 2013, 2:49:52 AM6/5/13
to silverst...@googlegroups.com
@Nicolaas, sorry, missed your reply... Yes, it adds images to the gridfield.

@Jonathan, great! Looking forward to see it in core!

On 2013-06-05 00:18, Jonathon Menz wrote:
> Hi guys, I've submitted a couple of pull requests which hopefully solves
> this issue.
>
> https://github.com/silverstripe/silverstripe-framework/pull/2044
> https://github.com/silverstripe/silverstripe-cms/pull/76
>
> On Wednesday, May 15, 2013 3:06:50 PM UTC-6, Nicolaas Thiemen Francken -
> Sunny Side Up wrote:
>
>
>
> On 16 May 2013 01:26, micschk <m...@restruct-web.nl <javascript:>>
> wrote:
>
> This thread's quite old but as thumbnails still don't show in
> the "Choose existing" GridField of an UploadField, I'm using a
> tiny extension (which might come handy to others arriving here
> through Google);
>
> class ImageExtension extends DataExtension {
>
> public static $summary_fields = array(
> 'StripThumbnail' => 'Thumbnail',
> 'Name' => 'Name',
> 'Title' => 'Title',
> );
> }
>
>
>
>
> are you saying that by adding this extension to images, the
> thumbnail shows in the gridfield "select existing image"? Sounds
> great - add to core?
>
> --
> You received this message because you are subscribed to the Google
> Groups "SilverStripe Core Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to silverstripe-d...@googlegroups.com.
> To post to this group, send email to silverst...@googlegroups.com.
> Visit this group at http://groups.google.com/group/silverstripe-dev?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages