Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

JavaScriptList

Summary

Sets the JavaScript files to include in the pagelayout.

Usage

 

JavaScriptList[]= javascript1
JavaScriptList[]= javascript2
...

Description

You should provide the full path relative to the design directory.

Examples

JavaScriptList[]=javascipts/mynewticker.js

Using this configuration eZ Publish will load the file "/design/ mydesign/javascripts/mynewsticker.js"

Frederik Holljen (04/04/2005 11:20 am)

Julia Shymova (19/06/2008 1:31 pm)

Frederik Holljen, Julia Shymova


Comments

  • Description & example incorrect

    There is no need to provide the "full path relative to the design directory" as all the templates that come with the distribution append "javascript/" the the values in the array.

    It is enough to simply add the filename of the javascript file and place it in a directory named "javascript" within a design directory.

    e.g.
    JavaScriptList[]=mynewticker.js
    

    Using this configuration eZ Publish will load the file "/design/mydesign/javascript/mynewsticker.js"

    • Re: Description & example incorrect

      That should have read "There is no need to provide the "full path relative to the design directory" as all the templates that come with the distribution <b>prepend</b> "javascript/" the the values in the array."