How do I check if an image has been uplaoded?

Author Message

Edward Eliot

Wednesday 29 September 2004 6:37:13 am

I want to use a section block to determine if an image has been uplaoded. I am thinking along the lines of:

{section show=$node.object.data_map.banner|ne('')}
	<div id="banner">
		{attribute_view_gui attribute=$node.object.data_map.banner image_class=original}
	</div>
{/section}

I am not sure this is right though. Any ideas anyone?

Frederik Holljen

Wednesday 29 September 2004 7:28:35 am

Use:

{section show=$node.object.data_map.banner.content}
 {* Your stuff here *}
{/section}

Edward Eliot

Tuesday 12 October 2004 1:33:38 am

This doesn't seem to work. I have tried this and a number of variants with no success.

I have tried:

{section show=$node.object.data_map.banner.content}
{section show=$node.object.data_map.banner.content|ne('')}
{section show=$node.object.data_map.banner}
{section show=$node.object.data_map.banner|ne('')}

Any ideas?

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 18 2025 16:22:21
Script start
Timing: Jan 18 2025 16:22:21
Module start 'layout'
Timing: Jan 18 2025 16:22:21
Module start 'content'
Timing: Jan 18 2025 16:22:22
Module end 'content'
Timing: Jan 18 2025 16:22:22
Script end

Main resources:

Total runtime0.8912 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0092 589.4688152.6406
Module start 'layout' 0.00920.0035 742.109439.4766
Module start 'content' 0.01270.8771 781.5859503.6953
Module end 'content' 0.88980.0013 1,285.28138.1250
Script end 0.8911  1,293.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3722160.0002
Check MTime0.00130.1479160.0001
Mysql Total
Database connection0.00140.162010.0014
Mysqli_queries0.845294.8392570.0148
Looping result0.00050.0555550.0000
Template Total0.857796.220.4288
Template load0.00210.241120.0011
Template processing0.855595.995720.4277
Template load and register function0.00030.033110.0003
states
state_id_array0.00130.141510.0013
state_identifier_array0.00100.116520.0005
Override
Cache load0.00180.1996150.0001
Sytem overhead
Fetch class attribute can translate value0.00080.090620.0004
Fetch class attribute name0.00130.141140.0003
XML
Image XML parsing0.00050.061420.0003
class_abstraction
Instantiating content class attribute0.00000.003240.0000
General
dbfile0.00080.0863160.0000
String conversion0.00000.001740.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs