×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
bug in module assets?
Alexander Stienstra
New Member
Posts: 1
pred 10 rokmi 5 dňami - pred 10 rokmi 5 dňami #484
od Alexander Stienstra
bug in module assets? bolo vytvorené Alexander Stienstra
When I install my component (unmodified), the assets for the module that are defined in mod_modname.php are actualy not in the specified location.
On the page that shows this module these lines appear in the source:
Note the double slashes in the path, and the incorrect extension for the script.
This is with a component generated for Joomla 2.5 component.
In the settings of the module I have no position, and show on no pages. I include the module directly in an article.
My site runs on Joomla 2.5.27.
/* */
$doc->addStyleSheet(JURI::base() . '/modules/mod_distributors/assets/css/style.css');
/* */
$doc->addScript(JURI::base() . '/modules/mod_distributors/assets/js/script.css');
<link rel="stylesheet" href="http://mydomain//modules/mod_modname/assets/css/style.css" type="text/css" />
<script src="http://mydomain//modules/mod_modname/assets/js/script.css" type="text/javascript"></script>
This is with a component generated for Joomla 2.5 component.
In the settings of the module I have no position, and show on no pages. I include the module directly in an article.
My site runs on Joomla 2.5.27.
Posledný krát upravené:pred 10 rokmi 5 dňami Alexander Stienstra Dôvod: put code into a [code] block
Prosím Prihlásiť alebo Registrácia pre zdieľanie konverzácie.
Čas vytvorenia stránky: 0.073 sekúnd