How to detect if an embeded object is an image.

Author Message

Clay Pereira

Thursday 19 August 2004 10:04:18 am

Hello I have one remaining issue to fix in order to make the ezpublish standard laylouts work perfectly on IE 5.5 Mac.

The Issue:
Floated objects need to have a set width in order for them to be floated. In 3.4 the xml objet.tpl now controls the float. Object-Right, Object-left. How can I get the width of the object. So I can have something like this.

<div class="object-{$object_align}" style="width:240px">

Clay Pereira

Thursday 19 August 2004 11:18:20 am

I solved it myself.

    	 {section show=eq($object.contentclass_id,"5")}    
		<div class="object-{$object_align}" style="width:{$object.data_map.image.content.[$object_parameters.size].width}px">
	 {content_view_gui view=$view object_parameters=$object_parameters content_object=$object}
   		 </div>
    		{/section}

No images float properly in IE Mac

With this code and my css code fix more horizontal menus. EZ basic templates work for IE mac.

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 22:22:32
Script start
Timing: Jan 30 2025 22:22:32
Module start 'layout'
Timing: Jan 30 2025 22:22:32
Module start 'content'
Timing: Jan 30 2025 22:22:33
Module end 'content'
Timing: Jan 30 2025 22:22:33
Script end

Main resources:

Total runtime0.9479 sec
Peak memory usage8,192.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.2656151.2266
Module start 'layout' 0.00570.0038 739.4922220.7344
Module start 'content' 0.00950.9378 960.22664,164.9297
Module end 'content' 0.94730.0006 5,125.15637.8125
Script end 0.9479  5,132.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3907160.0002
Check MTime0.00130.1338160.0001
Mysql Total
Database connection0.00070.078810.0007
Mysqli_queries0.879492.7742520.0169
Looping result0.00030.0367500.0000
Template Total0.901295.120.4506
Template load0.00170.180220.0009
Template processing0.899594.889720.4498
Template load and register function0.00140.148910.0014
states
state_id_array0.00090.092410.0009
state_identifier_array0.00080.082220.0004
Override
Cache load0.00140.1495120.0001
Sytem overhead
Fetch class attribute can translate value0.00160.164610.0016
Fetch class attribute name0.00160.171220.0008
XML
Image XML parsing0.00010.012310.0001
class_abstraction
Instantiating content class attribute0.00000.000820.0000
General
dbfile0.00260.2779100.0003
String conversion0.00000.000940.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
4content/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
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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs