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

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

eZ debug

Timing: Jan 29 2025 13:46:43
Script start
Timing: Jan 29 2025 13:46:43
Module start 'content'
Timing: Jan 29 2025 13:46:43
Module end 'content'
Timing: Jan 29 2025 13:46:43
Script end

Main resources:

Total runtime0.1477 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.2031180.7969
Module start 'content' 0.00610.0060 769.000093.9766
Module end 'content' 0.01210.1356 862.9766526.7031
Script end 0.1477  1,389.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00362.4250200.0002
Check MTime0.00140.9440200.0001
Mysql Total
Database connection0.00090.603010.0009
Mysqli_queries0.100968.29481410.0007
Looping result0.00120.82591390.0000
Template Total0.135291.510.1352
Template load0.00533.560110.0053
Template processing0.129987.936910.1299
Override
Cache load0.00060.418910.0006
Sytem overhead
Fetch class attribute can translate value0.00060.429910.0006
XML
Image XML parsing0.00020.165110.0002
General
dbfile0.00191.2714200.0001
String conversion0.00000.003630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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