about images, media and other candies

950 views
Skip to first unread message

Nils Rückmann

unread,
Jan 19, 2012, 5:17:37 PM1/19/12
to joomla-...@googlegroups.com
hi,

since i became a coding standards and other conventions fan,
i really like to know if we have something about media storages.

of course it's a long term goal, but should we not prefer a way to store our media ?

what's about the following things:

- css files from extensions
- js files from extensions
- (background/layout)-images from extensions
- media which is content specific (images of a gallery, etc.)

NR

Rouven Weßling

unread,
Jan 19, 2012, 5:36:42 PM1/19/12
to joomla-...@googlegroups.com
Hi Nils,

I'm not sure what you mean. We already have the media folder where images/css/js belongs that's installed with extensions. This separation of PHP code and those assets that are send to the browser allows us to eventually move the PHP code outside the web root and/or the assets to a different domain or even a CDN

For media that is uploaded by the user there is the images folder. However there could reasonably be more. The biggest issue we have there is the lack of metadata and ACL. Right now the image manager is just a simple representation of the files on disk.

Best regards
Rouven

Hannes Papenberg

unread,
Jan 19, 2012, 5:48:16 PM1/19/12
to joomla-...@googlegroups.com

The short answer is hat they should go into the /media folder.

--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/hDUkRTMCq_8J.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.

Nils Rückmann

unread,
Jan 19, 2012, 5:54:35 PM1/19/12
to joomla-...@googlegroups.com
Thanks Hannes ;) Should we not mentioned that in the docs ?

elin

unread,
Jan 19, 2012, 6:44:00 PM1/19/12
to joomla-...@googlegroups.com
It's a wiki so feel free to add that.

Elin

Raphau

unread,
Jan 24, 2012, 12:19:57 PM1/24/12
to Joomla! CMS Development
Hi,

for example i have a plugin, which create images like thumbnails.
Where exactly should the images be stored?
/media/plg_xxx_pictures/
or
/media/media/plg_xxx_pictures/
or
/media/media/images/
or
/media/media/images/plg_xxx_pictures/

How would you do that?

On 19 Jan., 23:48, Hannes Papenberg <hackwa...@googlemail.com> wrote:
> The short answer is hat they should go into the /media folder.

JSamir

unread,
Jan 24, 2012, 2:04:02 PM1/24/12
to joomla-...@googlegroups.com
I would like to know that too. I stored them in /images/com_mycomponent (but I got a component not a plugin).

Whats the best place to save images uploaded by users, for example for users galleries etc?

Raphau

unread,
Feb 6, 2012, 9:54:08 AM2/6/12
to Joomla! CMS Development
Is it no best practise for that?

JSamir

unread,
Feb 6, 2012, 11:38:50 AM2/6/12
to joomla-...@googlegroups.com
I dont know, because the media folder is meant to be overwritten by templates, but the galleries of the users wont ever be overwritten by the template. Another question is, how to name the folders further, for example /media/com_mycom/images/username or /media/com_mycom/images/$USERID.. or in /images/com_mycom/$USERID

Would be interesting to know whats the best practice.

Nils Rückmann

unread,
Feb 7, 2012, 3:21:54 AM2/7/12
to joomla-...@googlegroups.com
i think we don't need a "best practise" only. We need a prefered way to use the media-folder to get Joomla more clean.
Like the file-tree. Today everyone mades his own decision and your media folder looks like:

/cms
/system
/com_foo
/mod_bar
/jce
/contacts

.. and dozens more

and in these folders we have "assets", "js", "javascript", "stylesheets", etc. ..

I think we should arange us to use one way ...

btw: Are templates not able to use the media folder ?

NR
Reply all
Reply to author
Forward
0 new messages