ezpublish doesn't like javascript string

Author Message

j y

Thursday 22 June 2006 9:11:48 am

I need to include this chunk of script into one of my templates

	<script type="text/javascript" language="JavaScript">
	<!--
		new Rico.Accordion( 'accordian', {panelHeight:305, selectPanelIndex: 0 });
	//-->
	</script>

but it keeps displaying:

new Rico.Accordion( 'accordian'

onto the website. It looks like ezpublish is trying to parse the other half? is there a way i can set this up so that it'll work properly?

Softriva .com

Thursday 22 June 2006 10:04:30 am

try to enclose your script in {literal}

{literal}
      <script type="text/javascript" language="JavaScript">


        <!--


                new Rico.Accordion( 'accordian', {panelHeight:305, selectPanelIndex: 0 });


        //-->


        </script>
{/literal}

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 22:12:42
Script start
Timing: Jan 18 2025 22:12:42
Module start 'layout'
Timing: Jan 18 2025 22:12:42
Module start 'content'
Timing: Jan 18 2025 22:12:43
Module end 'content'
Timing: Jan 18 2025 22:12:43
Script end

Main resources:

Total runtime0.6432 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 588.0391152.6406
Module start 'layout' 0.00670.0030 740.679739.4609
Module start 'content' 0.00970.6324 780.1406457.8125
Module end 'content' 0.64210.0011 1,237.95318.2969
Script end 0.6432  1,246.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5238160.0002
Check MTime0.00140.2102160.0001
Mysql Total
Database connection0.00070.116010.0007
Mysqli_queries0.606794.3279540.0112
Looping result0.00040.0630520.0000
Template Total0.616195.820.3081
Template load0.00210.321820.0010
Template processing0.614095.461820.3070
Template load and register function0.00020.033210.0002
states
state_id_array0.00060.095410.0006
state_identifier_array0.00080.124220.0004
Override
Cache load0.00160.2564110.0001
Sytem overhead
Fetch class attribute can translate value0.00050.081220.0003
Fetch class attribute name0.00080.122220.0004
XML
Image XML parsing0.00020.035020.0001
class_abstraction
Instantiating content class attribute0.00000.000820.0000
General
dbfile0.00140.2102100.0001
String conversion0.00000.001640.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
2content/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/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs