Image problem

Author Message

Steph A

Saturday 26 February 2005 8:22:19 am

I have some problems showing small images in article. I just cant get any other size then orginal. I have tried lots of different solutions - but nothing seems to be working.

This is my overide code in /node/view/line:

<table border="0" cellpadding="0" cellspacing="0" width="100%" style="float: left">
	<tr>
		<td class="header_full" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #003366">
		<p style="margin-top: 0; margin-bottom: 5px">{attribute_view_gui attribute=$node.object.data_map.title}</p>
		</td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2" style="vertical-align: top">
		<div align="left">
			<table border="0" cellpadding="0" cellspacing="0" style="float: right">
				<tr>
					<td>
					<p style="margin-left: 20px; margin-top: 0; margin-bottom: 0">
					<a href="{$node.url_alias|ezurl}">{attribute_view_gui image_class=small attribute=$node.object.data_map.image} </a></p>
					</td>
				</tr>
			</table>
			<p align="left" style="margin-top: 0; margin-bottom: 0">{attribute_view_gui 
			attribute=$node.object.data_map.intro}</p>
		</div>
		</td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
</table>

It just will not show the "small" image.

Help anyone!?

Steph A

Saturday 26 February 2005 8:43:58 am

I solved it using

             {attribute_view_gui alignment=right image_class=articlethumbnail attribute=$node.object.data_map.image.content.data_map.image}

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 19 2025 01:12:51
Script start
Timing: Jan 19 2025 01:12:51
Module start 'layout'
Timing: Jan 19 2025 01:12:51
Module start 'content'
Timing: Jan 19 2025 01:12:52
Module end 'content'
Timing: Jan 19 2025 01:12:52
Script end

Main resources:

Total runtime0.6879 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 590.1563152.6094
Module start 'layout' 0.00610.0031 742.765639.3984
Module start 'content' 0.00920.6774 782.1641425.5938
Module end 'content' 0.68660.0013 1,207.75788.3594
Script end 0.6879  1,216.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4684160.0002
Check MTime0.00130.1832160.0001
Mysql Total
Database connection0.00090.125010.0009
Mysqli_queries0.631791.8253520.0121
Looping result0.00050.0768500.0000
Template Total0.642893.420.3214
Template load0.00240.346720.0012
Template processing0.640493.095120.3202
Template load and register function0.00020.027910.0002
states
state_id_array0.00160.235210.0016
state_identifier_array0.00110.153820.0005
Override
Cache load0.00200.2842110.0002
Sytem overhead
Fetch class attribute can translate value0.00090.136810.0009
Fetch class attribute name0.00180.260220.0009
XML
Image XML parsing0.00010.019210.0001
class_abstraction
Instantiating content class attribute0.00020.023820.0001
General
dbfile0.00190.2746100.0002
String conversion0.00000.001440.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs