JavaScript embedded though OE in XML Block

Author Message

Piotrek Karaś

Monday 10 March 2008 8:03:55 am

Hi there,

Need some quick information and don't have a chance to check that myself right now - urgent. Is it possible to embed JavaScript code through Online Editor (old or MCE) so that it is properly interpreted in the result XHTML document?

Thanks in advance!

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

André R.

Monday 10 March 2008 8:44:02 am

<literal class="html"></literal>

But you need to enable it in content.ini first.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Piotrek Karaś

Monday 10 March 2008 10:12:33 am

I'll give that a try - thanks André!

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

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 20 2025 20:04:23
Script start
Timing: Jan 20 2025 20:04:23
Module start 'layout'
Timing: Jan 20 2025 20:04:23
Module start 'content'
Timing: Jan 20 2025 20:04:24
Module end 'content'
Timing: Jan 20 2025 20:04:24
Script end

Main resources:

Total runtime1.0468 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.0469151.2266
Module start 'layout' 0.00690.0030 739.273436.6797
Module start 'content' 0.00991.0361 775.9531567.7031
Module end 'content' 1.04590.0008 1,343.656311.8125
Script end 1.0467  1,355.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3019160.0002
Check MTime0.00140.1304160.0001
Mysql Total
Database connection0.00150.146910.0015
Mysqli_queries1.007096.2018570.0177
Looping result0.00050.0520550.0000
Template Total1.008396.320.5041
Template load0.00180.169020.0009
Template processing1.006596.154520.5033
Template load and register function0.00010.007410.0001
states
state_id_array0.00190.181610.0019
state_identifier_array0.00140.136420.0007
Override
Cache load0.00140.1344140.0001
Sytem overhead
Fetch class attribute can translate value0.00050.045920.0002
Fetch class attribute name0.00100.096950.0002
XML
Image XML parsing0.00080.080520.0004
class_abstraction
Instantiating content class attribute0.00000.000760.0000
General
dbfile0.00080.0771240.0000
String conversion0.00000.000840.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs