about images, media and other candies

951 visningar
Hoppa till det första olästa meddelandet

Nils Rückmann

oläst,
19 jan. 2012 17:17:372012-01-19
till 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

oläst,
19 jan. 2012 17:36:422012-01-19
till 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

oläst,
19 jan. 2012 17:48:162012-01-19
till 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

oläst,
19 jan. 2012 17:54:352012-01-19
till joomla-...@googlegroups.com
Thanks Hannes ;) Should we not mentioned that in the docs ?

elin

oläst,
19 jan. 2012 18:44:002012-01-19
till joomla-...@googlegroups.com
It's a wiki so feel free to add that.

Elin

Raphau

oläst,
24 jan. 2012 12:19:572012-01-24
till 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

oläst,
24 jan. 2012 14:04:022012-01-24
till 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

oläst,
6 feb. 2012 09:54:082012-02-06
till Joomla! CMS Development
Is it no best practise for that?

JSamir

oläst,
6 feb. 2012 11:38:502012-02-06
till 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

oläst,
7 feb. 2012 03:21:542012-02-07
till 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
Svara alla
Svara författaren
Vidarebefordra
0 nya meddelanden