Re: Images are rendered differently in tables than in the normal body
Samuel Schluep <[email protected]>
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Message-ID | <[email protected]> |
eric casteleijn wrote: > Samuel Schluep wrote: > >> Dear Developers >> >> Images are rendered differently in tables than in the normal body: >> >> - in a table the image is rendered as:: >> '<img src="http://host.org/instance/doc/image.jpg" alt="" title="" >> class="default" height="xxx" width="yyy">' >> - in the body the image is rendered as:: >> '<img src="http://host.org/instance/doc/image.jpg/image" alt="" >> title="" class="default" height="xxx" width="yyy">' >> >> The difference is the '/image' at the end of the URL. Do you also >> have this difference, and is there some reason for this difference? >> (In some specialized export function I access the image object from >> the URL and I want to read the content type of the image with >> 'getContentTyp', which exists for the 'image' object but not for the >> 'Silva Image' object). > > > Hi Samuel, > > I have tried to reproduce this, but am not succeeding. In which > version of Silva is this occurring, and is it in the public view, the > public preview, the normal preview, or a combination thereof? > > eric Oh sorry, it is a specialized dLCMS-widget, which is responsible for this behaviour. I should have tested this issue with a pure Silva instance before. Well at least it is clear, that I will have to adapt my dLCMS stuff to the new image URLs without the '/image' string. I apologize for the inconvienience. Regards Sam