Author Topic

Noicokuna Niemoge

Thursday 16 April 2009 3:38:19 am

Comment27489

Why an inclusion of script type="text/javascript" doesn't work if, judging from the file name, it's a jquery fuction/plugin?

Maybe check if the file is correctly loaded? Is the path OK? Test the hard-coded path to be sure.

Also, because of rewrite engine switched on (and because I can't find any better solution), I tend to include js files from folders outside eZ structure. Or, in eZ root directory, create any category, put there js files and put a htaccess in it like this:

RewriteEngine Off
DirectoryIndex index.html

<FilesMatch "\.(js)$">
order allow,deny
allow from all
</FilesMatch>

I know it's not elegant, but as I asked in these forums for a good way to include js files and external php scripts, nobody answered... (and I both don't have time and are not good enough to make eZ extensions for trivial little scripts)

Shiki soku ze ku...