We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,248 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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?

2
Contributors
2
Replies
3 Days
Discussion Span
2 Years Ago
Last Updated
3
Views
Question
Answered
SPeed_FANat1c
Posting Pro in Training
492 posts since Apr 2010
Reputation Points: 13
Solved Threads: 17
Skill Endorsements: 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.

digital-ether
Nearly a Posting Virtuoso
Team Colleague
1,295 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101
Skill Endorsements: 9

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

SPeed_FANat1c
Posting Pro in Training
492 posts since Apr 2010
Reputation Points: 13
Solved Threads: 17
Skill Endorsements: 0
Question Answered as of 2 Years Ago by digital-ether

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0867 seconds using 2.76MB