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.

eZ debug

Timing: Jan 31 2025 01:29:14
Script start
Timing: Jan 31 2025 01:29:14
Module start 'layout'
Timing: Jan 31 2025 01:29:14
Module start 'content'
Timing: Jan 31 2025 01:29:14
Module end 'content'
Timing: Jan 31 2025 01:29:14
Script end

Main resources:

Total runtime0.0230 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.2656151.2266
Module start 'layout' 0.00450.0033 739.4922220.7188
Module start 'content' 0.00790.0139 960.21091,001.8516
Module end 'content' 0.02180.0012 1,962.062537.9922
Script end 0.0229  2,000.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00229.6725140.0002
Check MTime0.00093.9043140.0001
Mysql Total
Database connection0.00072.946410.0007
Mysqli_queries0.00219.171230.0007
Looping result0.00000.043610.0000
Template Total0.00083.610.0008
Template load0.00062.794810.0006
Template processing0.00020.765910.0002
Override
Cache load0.00041.932410.0004
General
dbfile0.002410.409380.0003
String conversion0.00000.029140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs