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

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

Monday 06 April 2009 7:00:39 am - 4 replies

Modified on Monday 06 April 2009 10:43:42 am by Michael Fürst

Author Message

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

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.