Image URL for use in CSS
Jamroom Developers
Hi Tig,
Not getting you, sorry.
If you have a
/modules/ntMyModule/img/myimage.png
file, then you use {$ntMyModule_img_url} in the CSS file at /modules/ntMyModule/css/mycss.css
That file should be registered in the _init() function
/modules/ntMyModule/include.php
function ntMyModule_init(){
jrCore_register_module_feature('jrCore', 'css', 'ntMyModule', 'mycss.css');
.....
}
so it will be included in the system generated single css file that has a long name and shows in the meta like:
<link rel="stylesheet" href="http://your-site.test/data/cache/ntYourSkin/26f48dab94ba6e342990f9162b2dec4a.css" media="all" type="text/css">
The variable should be being replaced.
--edit--
couple of typos and clarity.
updated by @michael: 12/02/19 09:37:34PM