Inline images

Author Message

Radic Radovan

Wednesday 16 November 2005 7:49:30 am

Hello,

I have seen InfoGlue CMS (no flame, please) is able to add inline images to an article. Our editor is entering the text of the article and in pretty powerful WYSIWYG editor of the CMS he can add inline images. Images are stored like objects - similar to EZ, and he can browse to the image and add the image in the text where he wants.
How this thing can be done in ez? I managed to add one image to the article and it is appearing at the bottom of the article page. Is there possibility to add more images to an article, and place it anywhere? Maybe with relation objects, but how than would i implement template page?

Tnx,
Radovan

Nabil Alimi

Wednesday 16 November 2005 8:18:35 am

Hi Radovan,

This can be done via the WYSIWYG editor of ezpublish.

The WYSIWYG is used on XML block fields of your class.
There is an image upload method that does what you need.
But I don't know if it's possible without the editor.

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Radic Radovan

Wednesday 16 November 2005 8:50:45 am

Thank you Nabil,

I didnt use XML blocks, and i now tried to create class that has one text line and one xml block as fields. Than i created one class in the content root, but i didnt get WYSIWYG editorm, just plain editor like notepad. How can i get WYSIWYG editor, i havent seen it yet in EZ?

Radovan

Nabil Alimi

Wednesday 16 November 2005 8:52:53 am

In fact, the WYSIWYG editor is an extension that you need to install on your Ez website.

But that's not free. :-)

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Radic Radovan

Thursday 17 November 2005 12:56:44 am

Thank you again Nabil,

Now i know one more thing i cant do with (free) ez version.

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 21:14:47
Script start
Timing: Jan 18 2025 21:14:47
Module start 'layout'
Timing: Jan 18 2025 21:14:47
Module start 'content'
Timing: Jan 18 2025 21:14:49
Module end 'content'
Timing: Jan 18 2025 21:14:49
Script end

Main resources:

Total runtime1.2711 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.7891152.6094
Module start 'layout' 0.00560.0040 740.398439.4141
Module start 'content' 0.00961.2599 779.8125555.7813
Module end 'content' 1.26950.0016 1,335.593812.1953
Script end 1.2711  1,347.7891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3236160.0003
Check MTime0.00130.1032160.0001
Mysql Total
Database connection0.00070.053210.0007
Mysqli_queries1.206994.9500630.0192
Looping result0.00070.0570610.0000
Template Total1.236197.220.6181
Template load0.00210.168020.0011
Template processing1.234097.077620.6170
Template load and register function0.00030.022310.0003
states
state_id_array0.00130.106010.0013
state_identifier_array0.00120.098320.0006
Override
Cache load0.00180.1415260.0001
Sytem overhead
Fetch class attribute can translate value0.00080.059320.0004
Fetch class attribute name0.00180.141160.0003
XML
Image XML parsing0.00070.057120.0004
class_abstraction
Instantiating content class attribute0.00000.002370.0000
General
dbfile0.00070.0555160.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/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: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs