Your javascript.php just needs to be in the main directory of your module.
Martin Dougiamas
Posts made by Martin Dougiamas
Sorry, $PAGE is part of the new output layer in Moodle 2.0 code (it never existed in Moodle 1.x).
One way to do it for your 1.x module is to put all your Javascript code in a file called mod/mediaonline/javascript.php (note that you can include PHP logic in there to generate user-specific JS if you want to but you don't have to, it can just be raw JS). That file will then be included automatically on every page by lib/javascript.php.
One way to do it for your 1.x module is to put all your Javascript code in a file called mod/mediaonline/javascript.php (note that you can include PHP logic in there to generate user-specific JS if you want to but you don't have to, it can just be raw JS). That file will then be included automatically on every page by lib/javascript.php.
1) Exposing the Files in 2.0 via WebDAV is planned.
2) Some code that already does that in 1.9 is around, with some effort. Look at http://moodle.org/mod/forum/discuss.php?d=89123 and MDL-90
3) In Moodle 2.0 you can also set up plugins so that Moodle can access a SAMBA share, a folder on the server, or a WebDAV source, or many other repositories. So there are many possibilities there.
2) Some code that already does that in 1.9 is around, with some effort. Look at http://moodle.org/mod/forum/discuss.php?d=89123 and MDL-90
3) In Moodle 2.0 you can also set up plugins so that Moodle can access a SAMBA share, a folder on the server, or a WebDAV source, or many other repositories. So there are many possibilities there.
Just a heads-up for translators.
Moodle 2.0 (in HEAD) is still very unstable and some strings are changing as we continue reviewing the code.
I highly recommend that you don't translate new strings in HEAD until we announce Moodle 2.0 beta and things settle down.
After that point you should still have some months to finish the translations before the final Moodle 2.0 release (if you want to have it ready by then).
Moodle 2.0 (in HEAD) is still very unstable and some strings are changing as we continue reviewing the code.
I highly recommend that you don't translate new strings in HEAD until we announce Moodle 2.0 beta and things settle down.
After that point you should still have some months to finish the translations before the final Moodle 2.0 release (if you want to have it ready by then).
This may not be a problem. Looks like we can migrate gradually and keep using YUI 2 widgets only where necessary:
http://yuilibrary.com/forum/viewtopic.php?f=92&t=1059
http://yuilibrary.com/forum/viewtopic.php?f=92&t=1059