Forums / Setup & design / How to detect if an embeded object is an image.

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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 Exponential 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.