Attempting to use a <link> tag surrounding an <embed> tag with no luck

Author Message

Duffy Walsh

Tuesday 03 November 2009 8:05:46 am

I found a post that there is a possibly similar issue with trying to use the <p> tag within a table cell.

However in my case, I have embedded an image into a table cell and am attempting to use it as a link. This works fine in the admin. However on the live site the link tags are stripped away.

Here is the code that is failing:

<td colspan="2" rowspan="1">
<link href="http://www.ez.no">

<embed size="original" align="left" href="ezobject://324" />

</link>

</td>

---------------------

The link works fine in the admin, however on the live site, the <a> tags are stipped away.

Any help would be greatly appreciated.

Duffy Walsh

Duffy Walsh

Tuesday 03 November 2009 4:09:53 pm

The nested tags are:
+td.tpl

++ embed.tpl

+++ image.tpl

++++ ezimage.tpl

However the link tag is being stripped out. not in the admin, just on the site. I would appreciate any help. Thanks!

Duffy Walsh

Duffy Walsh

Tuesday 03 November 2009 5:57:16 pm

Well, I figured out a hack that works...

I added a little space after the embedded image, that was encapsulated by the link tags. I also tested to see that it wasn't a conflict between the <td> and the <link> tag. I assumed the <link> tag would appear before the embed, as that is where it is in the admin when you disable the editor.

Given that the hack of adding space between the <embed> tag (for the image) and the close </link> tag, I'm assuming there is something in the configuration of the end_user siteaccess that strips out <link> or <a href> tags that don't surround some sort of charachter space as opposed to the image, since as mentioned previously in the ticket, the link and embed fucntionality are both working in the admin siteaccess.

I'll post back here if I find out what actually happened, and would greatly appreciate any suggestions, but as I am behind right now, I'm opting to go with the hack as a quick fix.

Duffy Walsh

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 29 2025 23:47:28
Script start
Timing: Jan 29 2025 23:47:28
Module start 'layout'
Timing: Jan 29 2025 23:47:28
Module start 'content'
Timing: Jan 29 2025 23:47:28
Module end 'content'
Timing: Jan 29 2025 23:47:28
Script end

Main resources:

Total runtime0.0116 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0040 588.3906151.2422
Module start 'layout' 0.00400.0019 739.632836.7266
Module start 'content' 0.00590.0042 776.359494.2188
Module end 'content' 0.01010.0014 870.578133.9922
Script end 0.0115  904.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002219.2508140.0002
Check MTime0.00109.0557140.0001
Mysql Total
Database connection0.00054.580410.0005
Mysqli_queries0.001916.246730.0006
Looping result0.00000.061810.0000
Template Total0.00119.210.0011
Template load0.00097.440310.0009
Template processing0.00021.728710.0002
Override
Cache load0.00065.313910.0006
General
dbfile0.00086.816080.0001
String conversion0.00000.041240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs