Do we need both the assets folder and the media/com_[component_name] folder? #139

Closed
opened 2017-10-13 10:55:14 +00:00 by kevincam3 · 4 comments
kevincam3 commented 2017-10-13 10:55:14 +00:00 (Migrated from github.com)

Just a newbie question and I know you're working on other high priority stuff but I did want to understand this. I've in the past used an "asset" folder in my component but lately I have been putting all component assets in the media/com_[component_name] folder.

Is there a reason you decided to go with both and have some stuff in one and other stuff in another. It just seems like having it all in one place would be simpler so that's why I was curious as to why the two locations.

Thanks for the help.

Just a newbie question and I know you're working on other high priority stuff but I did want to understand this. I've in the past used an "asset" folder in my component but lately I have been putting all component assets in the media/com_[component_name] folder. Is there a reason you decided to go with both and have some stuff in one and other stuff in another. It just seems like having it all in one place would be simpler so that's why I was curious as to why the two locations. Thanks for the help.
ro-ot commented 2017-10-13 11:13:31 +00:00 (Migrated from github.com)

The logic here is simple. You decide.

I like using the asset folder for what is private, and the media folder for what is public. Allowing both options is clearly just to give freedom.

I know @Llewellynvdm is all about giving freedom to the developers to be as creative as possible.

The logic here is simple. You decide. I like using the asset folder for what is private, and the media folder for what is public. Allowing both options is clearly just to give freedom. I know @Llewellynvdm is all about **giving freedom** to the developers to be as creative as possible.
kevincam3 commented 2017-10-13 11:21:09 +00:00 (Migrated from github.com)

Ok, understood,

I was just wondering if we should be following the Joomla! Best Practices: https://docs.joomla.org/Development_Best_Practices

I use the media folder for what is private and images/com_[component_name] for what is public so users can access it via the media manager. But point taken.

Thanks for the feedback.

Ok, understood, I was just wondering if we should be following the Joomla! Best Practices: https://docs.joomla.org/Development_Best_Practices I use the media folder for what is private and images/com_[component_name] for what is public so users can access it via the media manager. But point taken. Thanks for the feedback.
ro-ot commented 2017-10-13 11:42:38 +00:00 (Migrated from github.com)

Yes always follow good practice, but allow freedom!

Public are the things that helps with design front-end stuff /media.
Private are things that is needed for the component to work back-end stuff /assets.
Dynamic are things the user can change user stuff /images/whatever.

Yes always follow good practice, but allow freedom! **Public** are the things that helps with design **front-end** stuff _/media_. **Private** are things that is needed for the component to work **back-end** stuff _/assets_. **Dynamic** are things the user can change **user** stuff _/images/whatever_.
ro-ot commented 2017-10-13 11:55:09 +00:00 (Migrated from github.com)

Hey @kevincam3 please fork JCB 👍 share the joy!

Hey @kevincam3 please fork JCB :+1: share the joy!
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#139
No description provided.