is_object($content_version.object.data_map.resource_thumbnail.content)}

Author Message

Ashwini V

Monday 07 March 2005 3:25:18 am

Hi,
I have used the below mentioned code to find wether the image is avilable or not.

"is_object($content_version.object.data_map.resource_thumbnail.content)"

The above mentioned code worked fine in eZpublish 3.2-4, but it didn't work in EZPublish 3.5.0.

I also need the coding for displaying the images.

Can you please help me in this regard.

Regards,

Ɓukasz Serwatka

Monday 07 March 2005 3:34:21 am

Hi Karthik,

You can use {$content_version.object.data_map.resource_thumbnail.has_content} to check if image is available.

BTW could you change your topic name to more cleary?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Ashwini V

Monday 07 March 2005 4:01:01 am

Hi,
My aim is to display image of an article. Before this, I validated whether image is avilable for the article or not using the following code.

"is_object($content_version.data_map.resource_thumbnail.content)}"
(Ezpublish 3.2-4)

Now in Ezpublish 3.5 this code doesnt work. I had tried the following code in 3.5, but it didn't work.
"is_object($content_version.object.data_map.resource_thumbnail.content)}"
In ezpublish 3.5.0. This returns that the article contains an image, but it doesnt display the image.

I even tried with has_content, but it didn't work. This doesnt even return whether the article has image or not.

Please help me as to how to display images.

Thanks
Karthi

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 31 2025 04:32:29
Script start
Timing: Jan 31 2025 04:32:29
Module start 'layout'
Timing: Jan 31 2025 04:32:29
Module start 'content'
Timing: Jan 31 2025 04:32:29
Module end 'content'
Timing: Jan 31 2025 04:32:29
Script end

Main resources:

Total runtime0.0504 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 588.4219151.2422
Module start 'layout' 0.00720.0026 739.664136.6953
Module start 'content' 0.00990.0385 776.359490.2188
Module end 'content' 0.04830.0020 866.578133.9922
Script end 0.0503  900.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00285.5043140.0002
Check MTime0.00122.4084140.0001
Mysql Total
Database connection0.00122.458610.0012
Mysqli_queries0.00356.892930.0012
Looping result0.00000.024110.0000
Template Total0.00132.610.0013
Template load0.00112.170310.0011
Template processing0.00020.434610.0002
Override
Cache load0.00081.598410.0008
General
dbfile0.00030.507580.0000
String conversion0.00000.015640.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