Embedding images in an article/infopage

Author Message

Jason Filby

Sunday 02 November 2003 9:40:46 am

Hi all

What's the best way to embed images into an article/infopage? It seems that the only way to do this is to use the HTML img tag - but the downside of that is that the image is in the filesystem instead of the database.

Any ideas on this welcome,

Thanks
Jason

Alex Jones

Monday 03 November 2003 6:55:22 am

Jason, you can add the image to eZ publish 3.2+ has a special area for media such as images I believe. Once the image is added to the system, you can choose it as a "Related Object" when editing your article. Then, you just cut and paste the <object> tag (which it will present you) into the article text wherever you want it to show up.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Marco Zinn

Monday 03 November 2003 1:36:02 pm

Hi,
you can place your "image" objects anywhere in the tree, but the "media tab" is adviced, as this will give you preview thumbnail (very neat!.).

Just two hints:
1. Buy the online editor ;)
2. Currently, ez does _not_ allow images (or other related objects) inside a List (bullet or numbered). They will disappear.

Marco
http://www.hyperroad-design.com

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 16:15:30
Script start
Timing: Jan 18 2025 16:15:31
Module start 'layout'
Timing: Jan 18 2025 16:15:31
Module start 'content'
Timing: Jan 18 2025 16:15:31
Module end 'content'
Timing: Jan 18 2025 16:15:31
Script end

Main resources:

Total runtime0.8190 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0083 588.0078152.6250
Module start 'layout' 0.00830.0098 740.632839.4453
Module start 'content' 0.01810.7994 780.0781572.6328
Module end 'content' 0.81750.0014 1,352.710912.1563
Script end 0.8189  1,364.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4533160.0002
Check MTime0.00150.1879160.0001
Mysql Total
Database connection0.00220.273910.0022
Mysqli_queries0.760592.8683590.0129
Looping result0.00070.0912570.0000
Template Total0.779895.220.3899
Template load0.00220.268720.0011
Template processing0.777694.953820.3888
Template load and register function0.00030.032010.0003
states
state_id_array0.00150.185210.0015
state_identifier_array0.00070.082920.0003
Override
Cache load0.00170.2019190.0001
Sytem overhead
Fetch class attribute can translate value0.00100.127730.0003
Fetch class attribute name0.00090.109550.0002
XML
Image XML parsing0.00110.140330.0004
class_abstraction
Instantiating content class attribute0.00000.001350.0000
General
dbfile0.00080.1027220.0000
String conversion0.00000.001140.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
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs