Direct access to binary objects (images/etc)

Author Message

Oree Eyo

Tuesday 26 July 2005 8:54:47 am

Hello.
Im looking for a way to show an image from another site.
My image is stored as a image class object in the content tree.

I need to show the image witout knowing the object ID (so i can't reffer to /var/storage...etc)

When I access "http://host/index.php/module/image" I'm getting the whole view of image as in a gallery.

What I need is simply the image (file). nothing else. ( so that I can acceess it using <img src=(my ezp site url)> )

Any idea?

Ɓukasz Serwatka

Wednesday 27 July 2005 12:35:42 am

you can create custome tag e.g "extimg" where as a parameter you will set image path. Look into documentation for more info, how to create custom tag.

Example usage:

<extimg src="path_to_img" />

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

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 18:28:24
Script start
Timing: Jan 18 2025 18:28:24
Module start 'layout'
Timing: Jan 18 2025 18:28:24
Module start 'content'
Timing: Jan 18 2025 18:28:25
Module end 'content'
Timing: Jan 18 2025 18:28:25
Script end

Main resources:

Total runtime0.8093 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 589.4688152.6406
Module start 'layout' 0.00470.0027 742.109439.4766
Module start 'content' 0.00740.8004 781.5859525.1094
Module end 'content' 0.80770.0015 1,306.69538.2813
Script end 0.8093  1,314.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3815160.0002
Check MTime0.00130.1658160.0001
Mysql Total
Database connection0.00070.089910.0007
Mysqli_queries0.768494.9528540.0142
Looping result0.00050.0670520.0000
Template Total0.783796.820.3919
Template load0.00200.252020.0010
Template processing0.781796.589120.3908
Template load and register function0.00020.030310.0002
states
state_id_array0.00070.086410.0007
state_identifier_array0.00150.183720.0007
Override
Cache load0.00170.2054150.0001
Sytem overhead
Fetch class attribute can translate value0.00050.057820.0002
Fetch class attribute name0.00090.108330.0003
XML
Image XML parsing0.00060.077520.0003
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00080.0937180.0000
String conversion0.00000.001040.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
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/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: 7

Time used to render debug report: 0.0001 secs