开发者

joomla module, where to put css?

开发者 https://www.devze.com 2023-01-04 13:23 出处:网络
I\'ve just written joomla module. This is basic but working version of my moule. I want to \'effectize\' it, so i need to work with some css. Elements of my module has own cl开发者_如何学Casses so i

I've just written joomla module. This is basic but working version of my moule. I want to 'effectize' it, so i need to work with some css. Elements of my module has own cl开发者_如何学Casses so i can style it very easy. But where to put CSS?


I typically just create a css folder under my module's directory. You can then use this call to include your css from your module's php code: JDocument::addStyleSheet


Yes but would still recommend to put CSS in a seperate folder as suggested by Will Mavis as it is the right professional approach.


The assets for your Joomla extension should be put in the /media folder.

Eg:

For a module called mod_supermodule, put the files in:

/media/mod_supermodule/css
/media/mod_supermodule/images
/media/mod_supermodule/js
0

精彩评论

暂无评论...
验证码 换一张
取 消