Forums / Developer / Display image thumbnails in media folder.

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.

eZ debug

Timing: Jan 18 2025 10:59:17
Script start
Timing: Jan 18 2025 10:59:17
Module start 'content'
Timing: Jan 18 2025 10:59:18
Module end 'content'
Timing: Jan 18 2025 10:59:19
Script end

Main resources:

Total runtime1.1416 sec
Peak memory usage4,096.0000 KB
Database Queries211

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 587.8438180.8125
Module start 'content' 0.00820.9397 768.6563557.1875
Module end 'content' 0.94800.1935 1,325.8438337.7813
Script end 1.1415  1,663.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.3804210.0002
Check MTime0.00160.1371210.0001
Mysql Total
Database connection0.00100.090910.0010
Mysqli_queries1.067293.48882110.0051
Looping result0.00230.20102090.0000
Template Total1.111497.420.5557
Template load0.00200.176320.0010
Template processing1.109397.177420.5547
Template load and register function0.00020.019810.0002
states
state_id_array0.00070.059910.0007
state_identifier_array0.00180.155720.0009
Override
Cache load0.00180.1537400.0000
Sytem overhead
Fetch class attribute can translate value0.00160.141140.0004
Fetch class attribute name0.00140.123880.0002
XML
Image XML parsing0.00060.051840.0001
class_abstraction
Instantiating content class attribute0.00000.000980.0000
General
dbfile0.00230.1972210.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs