1,105,546 Community Members

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

Member Avatar
SPeed_FANat1c
Posting Pro
514 posts since Apr 2010
Reputation Points: 3 [?]
Q&As Helped to Solve: 18 [?]
Skill Endorsements: 0 [?]
 
0
 

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?

Member Avatar
digital-ether
Nearly a Posting Virtuoso
1,264 posts since Sep 2005
Reputation Points: 399 [?]
Q&As Helped to Solve: 102 [?]
Skill Endorsements: 11 [?]
Team Colleague
 
0
 

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.

Member Avatar
SPeed_FANat1c
Posting Pro
514 posts since Apr 2010
Reputation Points: 3 [?]
Q&As Helped to Solve: 18 [?]
Skill Endorsements: 0 [?]
 
0
 

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

Question Answered as of 3 Years Ago by digital-ether
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: