ez projects / qhjsiniloader
| UNIX name | Owner | Status | Version | Compatible with |
|---|---|---|---|---|
| qhjsiniloader | Quoc-Huy NGUYEN DINH | stable | 1.2 | 4.x |
As you might have multiple JS projects, you might want to customise some of their features. eZ Publish INI files are great for holding custom parameters but they cannot be loaded by a javascript file. So you need an Ajax call that then request a PHP script which in turns loads the INI file.
One issue could be that you will end up with too many Ajax calls if those projects are loaded on the same page.
So I've started this little extension by externalising the feature from qhautosave.
Install the eZ Package and activate the extension in site.ini.
Create an override for qhjsiniloader.ini and put in your custom parameters
Then in your js file:
QHJSINILoader.init( 'my_project', callback_function );
The configs values are in JSON format in:
QHJSINILoader.config
Requirements:
Changes:
GitHub:
V1.2 is out
Thursday 08 March 2012 15:31
Quoc-Huy NGUYEN DINH