create a custom tag to embed external videos

Author Message

Fernando MarinĂ²

Saturday 01 August 2009 5:33:18 am

the problem is simple, I want a method to embed external videos in my pages. The solutions I thought was to create a custom tag similar to the literal one, that instead keep unescaped only the tag <object>, <param> and <embed>. But I'm encountering some difficulties to do so.

Why this drastic solutions?
Well, essentially because there's not only you tube, and there's not only flash.

Some hints of you?
I do not have much problem creating a custom tags, but I'm unfamiliar with ez publish. The problem above could be easly solved using the php function strip_tags, but I still do not understand how ezp works. What is given to me as param of the custom tag? the original text or an already escaped/transformed one?

there will be no problem with the embed tags, that ezpublish already use?

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 18 2025 15:57:53
Script start
Timing: Jan 18 2025 15:57:53
Module start 'layout'
Timing: Jan 18 2025 15:57:53
Module start 'content'
Timing: Jan 18 2025 15:57:54
Module end 'content'
Timing: Jan 18 2025 15:57:54
Script end

Main resources:

Total runtime0.7802 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0115 588.0469152.6406
Module start 'layout' 0.01150.0039 740.687539.4766
Module start 'content' 0.01540.7635 780.1641401.8438
Module end 'content' 0.77880.0014 1,182.00788.1250
Script end 0.7802  1,190.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4962160.0002
Check MTime0.00190.2475160.0001
Mysql Total
Database connection0.00230.298510.0023
Mysqli_queries0.740994.9640460.0161
Looping result0.00060.0769440.0000
Template Total0.740895.020.3704
Template load0.00190.245420.0010
Template processing0.738994.705620.3695
Template load and register function0.00020.029310.0002
states
state_id_array0.00160.200910.0016
state_identifier_array0.00080.100020.0004
Override
Cache load0.00150.193290.0002
Sytem overhead
Fetch class attribute can translate value0.00110.138810.0011
Fetch class attribute name0.00070.090110.0007
XML
Image XML parsing0.00010.018110.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00170.2204100.0002
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs