× Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues

bug in module assets?

9 jaren 5 maanden geleden - 9 jaren 5 maanden geleden #484 door Alexander Stienstra
bug in module assets? werd gestart door 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.
/* */
$doc->addStyleSheet(JURI::base() . '/modules/mod_distributors/assets/css/style.css');
/* */
$doc->addScript(JURI::base() . '/modules/mod_distributors/assets/js/script.css');
On the page that shows this module these lines appear in the source:
<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>
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.
Laatst bewerkt 9 jaren 5 maanden geleden door Alexander Stienstra. Reden: put code into a [code] block

Gelieve Inloggen of een account aanmaken om deel te nemen aan het gesprek.

Tijd voor maken pagina: 0.129 seconden
Gemaakt door Kunena

We use cookies so that you can place orders and we can provide a better service. You can control the use of cookies at the individual browser level. If you reject cookies, you may still use our website, but your ability to use some features or areas of our website may be limited.