PHP scripts like image. How to embed?

Author Message

Aleksey Tik

Friday 01 February 2008 7:34:52 am

Hi everyone!
I have a php script which generate an image. If i embed it in regular thml i simply use <img> tag and point "src" to my script. it looks like <img src="path/to/my/script.php"> /
But in case eZ Publish I don't understand HOW i can do it? I can attach only an uploading content. but my script may hosted in another place (in another webserver, for example) and i can edit it sometimes. I can't upload it like "related objects".

How can i do this?

Thanks.

Nicolas Lescure

Friday 01 February 2008 12:44:19 pm

HI,

I see 2 ways to do this :
- a template operator if you want to use this image in your own template
- a new class with an embed view if you want to use the image like a related object, using the Online Editor

Hope this helps.

Aleksey Tik

Saturday 02 February 2008 11:44:00 pm

Thanks, i'll try to do it.

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 11:20:36
Script start
Timing: Jan 18 2025 11:20:36
Module start 'layout'
Timing: Jan 18 2025 11:20:36
Module start 'content'
Timing: Jan 18 2025 11:20:38
Module end 'content'
Timing: Jan 18 2025 11:20:38
Script end

Main resources:

Total runtime1.5413 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 590.1953152.6406
Module start 'layout' 0.00750.0026 742.835939.4766
Module start 'content' 0.01011.5294 782.3125502.2422
Module end 'content' 1.53950.0018 1,284.55478.1563
Script end 1.5413  1,292.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2044160.0002
Check MTime0.00130.0864160.0001
Mysql Total
Database connection0.00200.126610.0020
Mysqli_queries1.492096.7960570.0262
Looping result0.00060.0359550.0000
Template Total1.507497.820.7537
Template load0.00220.140520.0011
Template processing1.505297.657020.7526
Template load and register function0.00020.015410.0002
states
state_id_array0.00100.064810.0010
state_identifier_array0.00160.106120.0008
Override
Cache load0.00180.1185170.0001
Sytem overhead
Fetch class attribute can translate value0.00090.057020.0004
Fetch class attribute name0.00110.072640.0003
XML
Image XML parsing0.00070.043020.0003
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00100.0641160.0001
String conversion0.00000.000540.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs