Do we need both the assets folder and the media/com_[component_name] folder? #139
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#139
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
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.
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.
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.
Hey @kevincam3 please fork JCB 👍 share the joy!