Forums / General / Image problem with file name

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Image problem with file name

Author Message

sangib das

Thursday 04 May 2006 9:49:55 pm

Hi,
Pleases help me.Whenever publish a image in the user site...............
Suppose I have a image(apple ) name fruit.jpg
When published this image in the user site it is coming with apple and its file name(fruit)
Thanks..............

Łukasz Serwatka

Sunday 14 May 2006 11:35:40 pm

Could you better explain what you want to do?

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

Mihai007 Pop

Wednesday 28 June 2006 10:54:47 am

I think he/she is having the same problem I have. I just cannot find the answer. I have loaded 3.8.1 and started setting up a few things. The first thing was to install the packges. The next thing was to create a simple article and embed an image to be displayed when the article is viewed.

Now all I get in place of the image is the file name that is clickable. When I click it I can view the image in an image view format. (yes I also cleared the caches)

I checked anonymous permissions: MEDIA and all that! I have checked everywhere in the forum but cannot find an answer - could someone help my poor tormented soul please?

I have tried it in the Linux and Windows XP - same thing. I can view the image in the admin OE interface but not on the user interface.

Łukasz Serwatka

Wednesday 28 June 2006 12:21:22 pm

Hi,

I guess missing is override rule which uses embed image template form base design. To fix this you can do following:

Edit override.ini.append.php file for your public siteaccess and add following code

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

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

Then copy files from base design directory to your design directory.

Copy:
design/base/override/templates/embed-inline/image.tpl
design/base/override/templates/embed/image.tpl

to

design/<your_design_dir>/override/templates/embed-inline/image.tpl
design/<your_design_dir>/override/templates/embed/image.tpl

Replace <your_design_dir> with your design dir name. Clear all the cache and check images.

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

Andrew Kelly

Friday 11 August 2006 3:34:09 am

Actually, I think the fix is much easier than that.

If I'm understanding the problem correctly, it's the same as stated in
http://ez.no/community/forum/developer/onlineeditor_4_1

and is simply that the newer OE has changed a bit over the old. Embedded objects
can now be added with options of embed-inline and embed, with embed-inline being
the default. This then displays an inermediate link to the object rather display the
image or provide a direct link to download as in the case of a file.
If you choose the option embed rather than imbed-inline, images will display and the link
will download the file directly.

To make embed the default over embed-inline just go into the settings folder of the
OE extension itself, and adust site.ini.append so that

[EmbedViewModeSettings]
AvailableViewModes[]=embed-inline
AvailableViewModes[]=embed
AvailableViewModes[]=full
AvailableViewModes[]=line
InlineViewModes[]=embed-inline

<b>becomes</b>

[EmbedViewModeSettings]
AvailableViewModes[]=embed
AvailableViewModes[]=embed-inline
AvailableViewModes[]=full
AvailableViewModes[]=line
InlineViewModes[]=embed-inline

Clear the ini caches and you're all taken care of.

Andy