Forums / Developer / Probleme with my images

Probleme with my images

Author Message

anne martinet

Thursday 26 June 2008 5:57:23 am

Hi,

I didn't see my images (section Standard or Media). But, I have an anonymous user with these roles and policies:

        content  	read  	Section( Standard ) 
        content 	pdf 	 Section( Standard )
        rss 	          feed    No limitations 
	user 	         login   SiteAccess( demonstrateur_ez ) 
	user 	         login 	 SiteAccess( )
	user 	         login 	 SiteAccess( ) 
	content 	read 	Class( Flash , Image , Banner ) , Section( Media ) 
	user 	         login 	  SiteAccess( )
</content>

What's wrong?

Thanks,

anne martinet

Tuesday 01 July 2008 5:04:32 am

I didn't have my solution! :(

If I published an image (the class), with one image. I see this image.
But If I imported an image in the online editor. I didn't see my image.
I don't understand why!

And I see in my first page, the message

No relation

. Then I try to override this template:

design/standard/templates/content/datatype/view/ezobjectrelation.tpl

But no changes with my images!

Help, please

André R.

Tuesday 01 July 2008 5:29:03 am

Could you be a bit more specific to where you are seeing this issue?

As in is it only in editor or is it everywhere after you have used the editor to upload the image?
Do you use a custom or the standard class for images ('image')?
What kind of image type is this, do you get the same problem with different types?

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

anne martinet

Tuesday 01 July 2008 6:15:37 am

I have this probleme in all pages of my site.

For exemple, I download to Internet an image .jpg
After I join this image in a description to a folder (the logo is a trombone in the editor on line).
And when I published my folder, i see the link to acceed to image and not image.

anne martinet

Tuesday 01 July 2008 6:28:32 am

The message 'No relation' it's only on my home page!

When I upload my image with trombone, I have this probleme, but if I upload in attribute standard image of standards classes, I don't have probleme.
And I try with image JPG and PNG, and the probleme is the same.

André R.

Tuesday 01 July 2008 7:16:32 am

I guess you mean the attachment icon when you say 'trombone'.

Take a look at what kind of class is generated in the media section for the images you upload with Online Editor or relations upload. If they are of class "File" or something else instead of "Image", then you have some issues in your upload.ini settings file (file mime type to eZ Publish class mapping).

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

anne martinet

Tuesday 01 July 2008 8:11:05 am

That's right! When I said 'trombone' I talk about attachment icon, sorry.

And I verify the type of my images upload, in section media, there are all type Image.And it's the same in my relations.

anne martinet

Thursday 03 July 2008 2:35:25 am

There is something that I do not understand !!!!! : '(

On my instance of ez publish 4.0.0, I have several siteaccess.
For siteaccess default I can see my pictures "directly", but for that I siteaccess
created when I downloaded an image in the on-line editor, by the attachment icon (trombone), I get the link to the image.
In the case of my siteaccess I have my own design (and others design are ezwebin and base)

I noticed that for the siteaccess ezwebin_site to view the images it uses the template:

<! - START: including template: extension / ezwebin / design / ezwebin / override / templates / embed / image.tpl
  (design: content / view / embed.tpl) ->

And this template is not used for my siteaccess, it uses:

<! - START: including template: design / standard / templates / content / view / embed.tpl
(design: content / view / embed.tpl) ->

Why my siteaccess (which I created) do not use the template image.tpl?
Yet I request that one of my design is ezwebin .......

thank you in advance

Hans Melis

Thursday 03 July 2008 2:11:06 pm

When you upload an image through the Online Editor, do you see the image in the popup after the upload?

On that very same page is a dropdown with options how you'd like to display it (embed, embed-inline, ...). Which option do you use there?

Hans
http://blog.hansmelis.be

anne martinet

Thursday 03 July 2008 11:40:17 pm

When I upload an image through the Online Editor, I see the image in the popup after the upload !

And I select the view embed in the dropdown to the same page.

André R.

Friday 04 July 2008 3:19:44 am

> Why my siteaccess (which I created) do not use the template image.tpl?
> Yet I request that one of my design is ezwebin .......

Your missing a override then.

Form ezwebin (settings/siteaccess/<ezewebin_frontsiteaccess_name>/override.ini.append.php):

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

There are also a lot of other overrides in ezwebin that you might want to have in your siteaccess.
When I create a new siteaccess I tend to copy an existing one and change it to my needs, might be something you should do as well ;)

Update: And remember to clear cache (first and foremost template override cache)

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

anne martinet

Monday 07 July 2008 1:54:38 am

Thanks :)

My probleme is resolu.
Effectively, when I write these lines, that work!

Thanks!

;)