Share » Forums » Developer » Online Editor - clickable images...

Online Editor - clickable images don't work in editor

Online Editor - clickable images don't work in editor

Thursday 22 April 2004 12:46:17 am - 5 replies

Author Message

Paul Forsyth

Thursday 22 April 2004 1:02:44 am

If you can enter the <object> tag correctly in the admin, and it doesn't render that sounds like a template issue.

Btw, embed_class_5.tpl sounds pretty old, in current releases it is embed_image.tpl. Have you checked the template is able to handle hrefs?

paul

--
www.visionwt.com

K259

Thursday 22 April 2004 2:04:53 am

Hmm..maybe your are into something here Paul :( Btw. we are running 3.3

We have always used embed_class_5.tpl from the v. 3.0:
/override/templates/content/view/embed_class_5.tpl for the images in the editor.

I can see that in our siteaccess/xx/override.ini.append, there are:

[embed_class_5]
Source=content/view/embed.tpl
MatchFile=content/view/embed_class_5.tpl
Subdir=templates
Match[class]=5

What shall actually the right embed.tpl file for handling images in the editor look like?

Tnx

Paul Forsyth

Thursday 22 April 2004 2:13:45 am

I usually pull the latest embed template from design/admin/override/templates/embed_image.tpl. It does the same job but is updated.

Try it and see.

paul

--
http://www.visionwt.com

K259

Thursday 22 April 2004 4:04:02 pm

Tnx Paul :) That was the solution ;)

I wonder why (after 3-4 eZ publish upgrades), from 3.0->3.3 we still have the same old image-template. Maybe some more templates also are old..hmm..have to check it out.

Btw. there should in this tpl be a check if the image-description on the image class is empty or not. If it's empty, there will be a little white space after the image, after the picture or under. The image-description "tag" should not be "listed" if the description field is empty.

Vivek Chopra

Friday 23 April 2004 8:52:23 am

Thanks Paul.

This solution helped me a lot. But the links donot open in a new window. Even though the in the code it says

<object id="23791" size="medium" align="center" href="http://www.ez.no/" target="_blank" />

Still the links open in the same window. I checked the code for embed_image.tpl file but couldn't figure out how to do it. I don't want to mess up the other images on the site.

Thanks
Vivek

-----------------------
Edit:

Never mind. I copied the code from embed_image.tpl from version3.3. I did the trick.

Thanks though
Vivek

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu