954,576 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Joomla where to put js, image, css files when create component?

Hi, where is the best practice to put js, image, css files when you make component? I put them in the same directory as component is. Is it good practice? Or should they be in media directory?

SPeed_FANat1c
Posting Whiz in Training
295 posts since Apr 2010
Reputation Points: 13
Solved Threads: 13
 
Hi, where is the best practice to put js, image, css files when you make component? I put them in the same directory as component is. Is it good practice? Or should they be in media directory?

A lot of components will have a js/, image/ and css/ folder under the root of the component. I believe it just depends on what you feel is the best structure.

digital-ether
Nearly a Posting Virtuoso
Moderator
1,293 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101
 

Ok, I guess its best to have all in the same folder as the component code for simplicity.

SPeed_FANat1c
Posting Whiz in Training
295 posts since Apr 2010
Reputation Points: 13
Solved Threads: 13
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: