Display image thumbnails in media folder.

Author Message

David Jones

Thursday 07 September 2006 2:01:12 am

How do I make the media folder display image thumbnails.

When I click to display thumbnails I simply get a file icon, not the thumb of the image.

I assume that this is not what is ment by thumbnail.

Any ideas?

David Jones

Friday 08 September 2006 6:58:51 am

This is still an issue.

Can any body help?

Samuel Sauder

Friday 08 September 2006 8:46:52 am

(I'm guessing you are in the admin ...)
If you are viewing subfolders the folder icon appears. So go to a folder that has images in it, then you will see the thumbs
The content class determines what your icon/thumb is

David Jones

Tuesday 17 October 2006 7:53:07 am

I'm not sure I understand.

I've created an overide for the

design/admin/templates/node/view/line.tpl template.

In it I've included the following.

{if eq({$node.class_identifier, 'image')}

<a href={$node_url|ezurl} title="{'Node ID: %node_id Visibility: %node_visibility'|i18n( 'design/admin/node/view/line',, hash( '%node_id', $node.node_id, '%node_visibility', $node.hidden_status_string ) )}">{/section}{$node_name|wash}
	{attribute_view_gui attribute=$node.item.data_map.image image_class=small}
</a>
{/if}

But this doesn't seem to work.

Can somebody point me in the right direction.

Thanks

David Jones

Thursday 19 October 2006 2:18:37 am

Surely I'm not the only person who wants to do this?

Can anybody help?

Claudia Kosny

Friday 20 October 2006 4:36:39 pm

Hi David

The template that deals with displaying the subitems of a node is admin/templates/children.tpl. And in there the template admin/templates/children_thunbnail.tpl is included if you selected the thumbnail view.

So have a look at these templates to solve your problem. It is working fine for me so I can't give you any tips where exactly to start.

Greetings from Luxembourg

Claudia

David Jones

Monday 23 October 2006 6:51:41 am

Claudia,

You are right, it does seem to be using that template but instead of displaying the actual image it is display an icon that represents an image.

Maybe there is a settings file somewhere which says what icons are attached to what classes? Maybe such a file will also allows the actual image to be displayed instead?

Any ideas?

David Jones

Monday 23 October 2006 7:41:06 am

S'ok, i managed to change the template so that it displays images and not icons.

Thanks for your assistence.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.