[solved] eZ OE 5.0: Embedded images not shown in frontend

Author Message

Michael Fürst

Monday 06 April 2009 7:00:39 am

Hi there,

I use the following system:
eZ 4.1.0 with OE 5.0 (Online Editor, eZOE)

Now i've the following Problems: If I embbed an Image in the OE (eZXML Field), the Image is well calculated an inserted in the text. I can see the Image in the admin-view and everything looks good.

<b>My problem:</b>
After I've published the article, the embedded images are not shown in frontend view. I only see the ALT Text of the emedded image with a link like this:

http://www.domain.com/Media/Fotos-Bilder/Artikelfotos/Contentfotos-Bilder-im-Artikel/200904/Caption-des-Bildes

Nowhere an <img> Tag... :(

If I edit the article again, the images are show in the OE Admin Interface...

Maybe it's a problem with the view template, but at the moment i've no idea where to look for. There are also no error-messages in debug output.

Has anyone an idea where to look for?

Thanks in advance & regards,
Mike

André R.

Monday 06 April 2009 7:17:49 am

You can have a look in the FAQ, but I don't think it's anything about this particular issue:
http://svn.ez.no/svn/extensions/eztinymce/trunk/ezoe/FAQ

To debug:
Right click in your browser window and click view source on edit page with this issue in both front end and admin and compare the html output.
You can find the editor output in a text area by searching for 'oe-window'.

Post what you find here and I'll try to fix it.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Michael Fürst

Monday 06 April 2009 8:10:02 am

Hi,

First: Thanks for your response ;)
Ok, thats what it looks like in the OE in Admin Interface:

<b>In OE / Admin Interface (works fine):</b>

....
<img width="170" height="131" align="left" customattributes="offset|0attribute_separationlimit|5" inline="false" view="embed" alt="articleimage170xX" mce_src="/var/racketline/storage/images/media/fotos-bilder/artikelfotos/contentfotos-bilder-im-artikel/200904/Caption-of-image/3999-1-ger-DE/Caption-of-image_articleimage170xX.jpe" src="/var/racketline/storage/images/media/fotos-bilder/artikelfotos/contentfotos-bilder-im-artikel/200904/Caption-of-image/3999-1-ger-DE/Caption-of-image_articleimage170xX.jpe" title="ATP, World Tour, Sony Ericsson Open. Bild zeigt Rafael Nadal (ESP)." id="eZObject_552"/>
.....

<b>Same image/ text in Frontend / Website (no Image rendered)</b>

....
<div class="object-right"><a href="/Media/Fotos-Bilder/Artikelfotos/Contentfotos-Bilder-im-Artikel/200904/Caption-of-image">Caption-of-image</a></div>
....

That's the situation at the moment... I already think, that there maybe a problem with datatypes, caus i don't use the default "image" class for images. I've create a new "articleimage" class with different attributes. Of course i added it to the RelationGroupSettings in content.ini settings...

Maybe you have an idea?

Thanks a lot,
regards,
Mike

Łukasz Serwatka

Monday 06 April 2009 8:33:23 am

Did you make a template embed override for your custom image class? To me it looks like a default embed tpl is used. You can figure what template is used by enabling site.ini.[TemplateSettings].ShowUsedTemplates

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

Michael Fürst

Monday 06 April 2009 10:43:24 am

Hi Lukasz,

Yeah, you're right.. thanks for your support.
I just added the new class "artikelfoto" to the image override:

[embed_image]
Source=content/view/embed.tpl
MatchFile=embed/image.tpl
Subdir=templates
Match[class_identifier]=image
Match[class_identifier]=artikelfoto

Now it works ;)

Thanks a lot,
Bye,
Mike

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 03:25:50
Script start
Timing: Jan 31 2025 03:25:50
Module start 'layout'
Timing: Jan 31 2025 03:25:50
Module start 'content'
Timing: Jan 31 2025 03:25:50
Module end 'content'
Timing: Jan 31 2025 03:25:50
Script end

Main resources:

Total runtime0.0250 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.3750151.2422
Module start 'layout' 0.00630.0037 739.6172220.7500
Module start 'content' 0.01010.0134 960.36721,005.9922
Module end 'content' 0.02350.0014 1,966.359437.9922
Script end 0.0249  2,004.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002811.0965140.0002
Check MTime0.00104.0825140.0001
Mysql Total
Database connection0.00072.637710.0007
Mysqli_queries0.002710.891330.0009
Looping result0.00000.092610.0000
Template Total0.00104.210.0010
Template load0.00083.117710.0008
Template processing0.00031.012510.0003
Override
Cache load0.00051.881910.0005
General
dbfile0.00176.824180.0002
String conversion0.00000.039140.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