开发者

joomla module, where to put css?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜