-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template script.js does not work #3
Comments
Since DOKU_TPLINC has been deprecated, things have changed a bit (see dokuwiki/dokuwiki@c476695 and dokuwiki/dokuwiki@81aca18). I have just tried to fix it, but found the following problems:
So, with the current existing solutions it's not possible to make a template's script.js work. This needs either some changes in the core or some clever new solution I couldn't think of yet. |
I found a solution, but only by changing the core, see dokuwiki/dokuwiki#1130. |
This is now fixed in the current development version of the core DokuWiki. |
As there is a new release of DokuWiki now, this can finally be closed. |
As reported by Jan Kreps 2011/03/16 12:38 on http://www.dokuwiki.org/plugin:loadskin#template_scriptjs_does_not_work_without_doku_tplinc :
I noticed small trouble with javascript loading. All lib/tpl//script.js should be loaded at the start. But because I commented out part of init.php definig DOKU_TPLINC as suggested, script.js in template directory does not get loaded. It's because DOKU_TPLINC constant is needed when list of scripts to include is generated. It is in lib/exe/js.php in function js_out().
The text was updated successfully, but these errors were encountered: