Forums / Setup & design / Images not shown in eZXML field

Images not shown in eZXML field

Author Message

Trond Åge Kvalø

Monday 15 March 2004 6:08:01 am

Hi there.

I've created a class "infoside" that has the following attributes:
name (Text line)
description (Text field)
tekst (XML Text field)
bilde (Image)

When I create an instance of this class, I use the Online Editor to insert two images into the XML text field.

This is my node_view_full_infoside.tpl:

<H1><SPAN class="header-main">{$node.name}</SPAN></H1>
<P class="ingress-main">{$node.object.data_map.description.content}</P>
{$node.object.data_map.tekst.content.output.output_text}

Why doesn't my images show in the output_text?

best regards
trondåge

trondåge

Trond Åge Kvalø

Tuesday 16 March 2004 2:20:25 am

What actually happens is that eZ inserts a <a href="path_to_image">Name_of_image</a>
instead of the image itself.

Where does eZ generate the HTML-output from XNL text field?

trondåge

trondåge

Paul Forsyth

Thursday 18 March 2004 5:12:21 am

I have a similar problem, is this the same for you?

http://ez.no/community/bug_reports/broken_images_when_viewing_images_in_the_online_editor

paul

Trond Åge Kvalø

Thursday 18 March 2004 5:50:27 am

Sorry, but this is not the same problem as I have.

I see my images in the online editor, but when I view the node as a regular user, I get a link instead of the image. So instead of putting the file inside an img tag it put's the url_alias inside a <a href="">name of image</a> tag.

I believe that it might have something to do with a bad template somewhere in the standard design, but I'm not sure which one, yet. Some other things has crept up on my todo-list, so I'll deal with this issue later.

I guess I can find out which template is used by turning on template debugging, right?

Hope you solve your problem soon.

best regards
trondåge

trondåge