ezjscore.ini settings
The settings of ezjscore are in ezjscore.ini. Most sites never change them. This page says what each block is for and when a site owner might ask for a change; the full reference, with every setting, its default and an example override, is generated from the shipped file and kept up to date in the help center. The old chapter had a page per setting; those pages now point here.
Where to change them
Never edit extension/ezjscore/settings/ezjscore.ini itself: an update replaces it. Put changes in settings/override/ezjscore.ini.append.php for every siteaccess, or in settings/siteaccess/<siteaccess>/ezjscore.ini.append.php for one. Setup, Ini settings shows the values in effect for a siteaccess and the file each comes from.
Setup, Ini settings with ezjscore.ini: the values in effect for a siteaccess and the file each comes from.
The blocks
| Block | Settings | What they are for | Reference |
|---|---|---|---|
| [eZJSCore] | Packer (commented out), JavaScriptOptimizer[], CssOptimizer[], LoadFromCDN, PreferredLibrary, ExternalScripts[], LocalScripts[] | Packing, the classes that make scripts and style sheets smaller, and the jQuery files: loaded from the server itself (LoadFromCDN=disabled, the default) or from the addresses in ExternalScripts[]. PreferredLibrary is jquery. | [eZJSCore] |
| [Packer] | AppendLastModifiedTime, CustomHosts[] | The time of the last change in the packed file's name (enabled, so browsers fetch a changed file at once), and other hosts to serve the packed files from. | [Packer] |
| [ezjscServer] | FunctionList[] | The names of the server call functions that roles can be given in the ezjscore/call policy. | [ezjscServer] |
| [ezjscServer_<name>] | Class, File, TemplateFunction, Functions[], PermissionPrFunction, RequirePolicy | One block per set of server calls: the PHP class that answers (or a template), and the functions of FunctionList[] a user needs. Written by developers. | all blocks |
| [AjaxUploader] | AjaxUploadHandler[] | The handlers that upload a file straight into a relation field. | [AjaxUploader] |
Changed since the old pages
- LocalScriptBasePath and the YUI entries of ExternalScripts[] and LocalScripts[] were removed with YUI in ezjscore 1.5. The jQuery files are in the extension's design/standard/javascript/.
- The setting the old pages called ClassName is Class, and Function is Functions[].
- AppendLastModifiedTime is enabled by default.
- The external addresses use https; leaving LoadFromCDN disabled keeps every script on your own server.
What can go wrong
- A change has no effect. The INI caches must be cleared after a settings change, and the packed files built again: see Caches for site owners.
- A list setting lost its shipped values. An empty line such as LocalScripts[] in your override empties the list first; without it your values are added.
Read more
In this section
Contributors
- Ricardo Correia
- Graham Brookins Updated Maintainer
Comments
Add a comment