Integrating YAHOO UI in Ezwebin

Author Message

B. Nkengsong

Friday 05 September 2008 4:26:30 am

Hello,

I want to integrate yui tools in a template (pagelayout.tpl). But there a problem with the brackets. May be is the TPL compiler that does not make difference between the EZ template language bracket and the yahooapis one.

 <script language="javascript">
        var tabView = new YAHOO.widget.TabView();
         tabView.addTab( new YAHOO.widget.Tab({
             label: 'Opera',
             dataSrc: 'assets//news.php?&query=opera+browser',
             cacheData: true,
             active: true
        }));

The problem is with the bracket after YAHOO.widget.Tab.

How to cast it in order to integrate it in a TPL file ?

Sanagha Technologies Corp.
http://www.sanagha.com | http://www.sanagha.net | http://tourisphere.sanagha.net | http://education.sanagha.net
IT Consultant

Ivo Lukac

Friday 05 September 2008 6:29:01 am

Hello,

Use {literal} :

{literal} 
<script language="javascript">
       var tabView = new YAHOO.widget.TabView();
        tabView.addTab( new YAHOO.widget.Tab({
            label: 'Opera',
            dataSrc: 'assets//news.php?&query=opera+browser',
            cacheData: true,
            active: true
       }));
{/literal} 

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

B. Nkengsong

Tuesday 09 September 2008 2:51:06 am

Thank you Ivo

It's there the solution !

Thank you once more

Sanagha Technologies Corp.
http://www.sanagha.com | http://www.sanagha.net | http://tourisphere.sanagha.net | http://education.sanagha.net
IT Consultant

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 18:24:35
Script start
Timing: Jan 18 2025 18:24:35
Module start 'layout'
Timing: Jan 18 2025 18:24:35
Module start 'content'
Timing: Jan 18 2025 18:24:36
Module end 'content'
Timing: Jan 18 2025 18:24:36
Script end

Main resources:

Total runtime0.5857 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.0050 587.9141152.6250
Module start 'layout' 0.00500.0025 740.539139.4453
Module start 'content' 0.00750.5768 779.9844533.9375
Module end 'content' 0.58420.0014 1,313.921912.1641
Script end 0.5857  1,326.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.5350160.0002
Check MTime0.00120.2008160.0001
Mysql Total
Database connection0.00080.131010.0008
Mysqli_queries0.540192.2078570.0095
Looping result0.00050.0855550.0000
Template Total0.557295.120.2786
Template load0.00200.334320.0010
Template processing0.555394.802520.2776
Template load and register function0.00020.034810.0002
states
state_id_array0.00160.273910.0016
state_identifier_array0.00080.140720.0004
Override
Cache load0.00160.2658170.0001
Sytem overhead
Fetch class attribute can translate value0.00060.106120.0003
Fetch class attribute name0.00150.248840.0004
XML
Image XML parsing0.00070.127220.0004
class_abstraction
Instantiating content class attribute0.00000.001740.0000
General
dbfile0.00090.1620170.0001
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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs