Forums / Setup & design / [solved] eZ OE 5.0: Embedded images not shown in frontend

[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