Forums / General / Online editor not working properly?

Online editor not working properly?

Author Message

luis muñoz

Thursday 01 June 2006 6:11:34 am

Take a code like this (form xml block):

<table border='0' width='100%'>
<tr>
  <td><link href='http://www.xxx.com'><embed href='ezobject://133415' size='original' align='left' /></link></td>

And have a look at the output:

<table class="renderedtable"  border="0" cellpadding="2" cellspacing="0"  width="100%">
<tr>
<td valign="top">  
<div class="object-left">
<div class="imageleft"><img src="/var/xxxxx/storage/images/media/images/moving_off/990042-1-eng-GB/moving_off.gif" alt="" />
<div style="width: 81px;">
</div>
</div></div>

I have no problems with all the divs and strange things but where is the link? How can i put a link in that image and show it without border and oe errors? If i add an href attibute to the embeded object it show an error but the link works (with a nice blue border wich i cannot remove).

Is this a bug? are there any way to make a link to an image with (or witout) Online Editor

Thanks,
Luis

Kirill Subbotin

Tuesday 06 June 2006 2:31:09 am

This doesn't depend on the Online Editor, only on the templates you are using. By default "embed" tag is rendered by "
templates/content/datatype/view/ezxmltags/embed.tpl" (or "embed-inline.tpl") tempalte. Link's paramaters are passed there in $link_parameters. The object is displayed using content_view_gui, so make sure that your object's template in "embed" view has proper use of $link_parameters array to generate a link around an image. Default template does.