Forums / General / Image problem with file name

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

eZ debug

Timing: Jan 20 2025 02:30:52
Script start
Timing: Jan 20 2025 02:30:52
Module start 'content'
Timing: Jan 20 2025 02:30:53
Module end 'content'
Timing: Jan 20 2025 02:30:53
Script end

Main resources:

Total runtime0.8684 sec
Peak memory usage4,096.0000 KB
Database Queries204

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 588.9453180.8438
Module start 'content' 0.00790.7184 769.7891650.3828
Module end 'content' 0.72630.1421 1,420.1719337.0703
Script end 0.8683  1,757.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.4989210.0002
Check MTime0.00160.1855210.0001
Mysql Total
Database connection0.00100.116210.0010
Mysqli_queries0.778089.59402040.0038
Looping result0.00220.25632020.0000
Template Total0.829895.620.4149
Template load0.00230.262720.0011
Template processing0.827595.290120.4138
Template load and register function0.00020.022910.0002
states
state_id_array0.00190.213310.0019
state_identifier_array0.00100.113820.0005
Override
Cache load0.00200.2284480.0000
Sytem overhead
Fetch class attribute can translate value0.00120.142750.0002
Fetch class attribute name0.00180.202870.0003
XML
Image XML parsing0.00150.174250.0003
class_abstraction
Instantiating content class attribute0.00000.001980.0000
General
dbfile0.00580.6635350.0002
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 32
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs