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

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 20 2025 04:12:38
Script start
Timing: Jan 20 2025 04:12:38
Module start 'layout'
Timing: Jan 20 2025 04:12:38
Module start 'content'
Timing: Jan 20 2025 04:12:41
Module end 'content'
Timing: Jan 20 2025 04:12:41
Script end

Main resources:

Total runtime2.1508 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 592.3281152.6250
Module start 'layout' 0.00730.0037 744.953139.4453
Module start 'content' 0.01102.1385 784.3984645.3047
Module end 'content' 2.14950.0013 1,429.703116.1641
Script end 2.1508  1,445.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.1508160.0002
Check MTime0.00140.0651160.0001
Mysql Total
Database connection0.00200.091810.0020
Mysqli_queries2.068196.1546670.0309
Looping result0.00070.0309650.0000
Template Total2.109998.121.0549
Template load0.00200.092320.0010
Template processing2.107998.004121.0539
Template load and register function0.00020.010010.0002
states
state_id_array0.00220.101510.0022
state_identifier_array0.00150.069920.0008
Override
Cache load0.00170.0808480.0000
Sytem overhead
Fetch class attribute can translate value0.00050.024040.0001
Fetch class attribute name0.00120.054870.0002
XML
Image XML parsing0.00300.141640.0008
class_abstraction
Instantiating content class attribute0.00000.000780.0000
General
dbfile0.00280.1306240.0001
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 32
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs