Forums / Developer / EZimage problem in a XML Block

EZimage problem in a XML Block

Author Message

Sébastien Nouvian

Wednesday 20 April 2011 1:53:06 am

Hello everyone!
I have a problem on a WebSite.
All images added to an XML Block appear as a link in public siteaccess (templateezxmltags / embed.tpl).

They appear correctly in the admin.

Thank you in advance for your answers !

Marko Žmak

Wednesday 20 April 2011 2:23:16 am

Some things to check:

  • is the image inserted as embed or embed-inline?
  • in the debug info what's the path to the template that's used for displaying the embeded image?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Sébastien Nouvian

Wednesday 20 April 2011 4:18:13 am

The image inserted as embed.
The problem is the same with embed-inline.

The path is : design/standard/templates/content/view/embed.tpl

Marko Žmak

Wednesday 20 April 2011 5:19:49 am

Try adding the "base" design to your AdditionalSiteDesignList, like this:

[DesignSettings]
AdditionalSiteDesignList=base

And clear the cache after that.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Sébastien Nouvian

Wednesday 20 April 2011 5:52:15 am

I added AdditionalSiteDesignList[]=base and clear the cache, it still does not work :-(

Sébastien Nouvian

Thursday 21 April 2011 7:02:58 am

I found the solution :-D ! , I added to my override.ini

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

And it works, I also saw that lacked "embed" in the override, I do not know why?!
Thank you !

Nicolas Pastorino

Thursday 21 April 2011 10:13:53 am

"

I found the solution :-D !

"

Good news !

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye