Browsing the media section

Author Message

Nicolas OTTAVI

Thursday 05 January 2006 10:21:35 am

Hi there,

I want to display images thumbnail when browsing the media section instead of the "image class" icon.

I assume I should modify the following template:
/design/admin/templates/node/view/browse_thumbnail.tpl and do a {if} on the class identifier. If the class identifier is an image then I should display a specific view of the node, as for instance, the embed view ... The problem is that I got nothing displayed when trying to do it with the following line of code:

{if eq($node.class_identifier,'image')}
 {node_view_gui content_node=$node view=embed}
{else}
 {$node.class_identifier|class_icon( normal, $node.object.class_name ) } {* the normal way *}
{/if}

Any idea of what the problem could be. Or how would you do it yourself ?

Thanks,
C.

Osichr Hayez

Friday 06 January 2006 12:04:18 am

When viewing the media section I simply click the viewmode buttons below the objects header. You can choose between List, Thumbnail and Details. Thumbnails are then displayed!

However, when inserting an image through OE this doesnt work: If you click the thumbnail-view-link when choosing an image, the thumbnails are simply displayed as document-icons. How can I make ez publish show me real thumbnails instead?

This should really be the default functionality when installing ez!

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 30 2025 21:42:19
Script start
Timing: Jan 30 2025 21:42:19
Module start 'layout'
Timing: Jan 30 2025 21:42:19
Module start 'content'
Timing: Jan 30 2025 21:42:19
Module end 'content'
Timing: Jan 30 2025 21:42:19
Script end

Main resources:

Total runtime0.0252 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.1328151.2109
Module start 'layout' 0.00490.0038 739.3438220.6875
Module start 'content' 0.00870.0147 960.0313997.8047
Module end 'content' 0.02350.0017 1,957.835929.9922
Script end 0.0252  1,987.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002811.0551140.0002
Check MTime0.00114.3256140.0001
Mysql Total
Database connection0.00062.272510.0006
Mysqli_queries0.00197.600530.0006
Looping result0.00000.039710.0000
Template Total0.00124.610.0012
Template load0.00103.772410.0010
Template processing0.00020.833210.0002
Override
Cache load0.00062.565710.0006
General
dbfile0.00228.663580.0003
String conversion0.00000.035940.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