Hi,
Is there a way to set the file storage path for media module files so that it makes a year/month/filename archive of the files, rather than just putting everything in the same directory? I had a quick look on google for a plugin that does this, but didn't find anything. I'm using drupal 7.
Also, it would be good to know if anyone has experience with the views media browser module?
http://drupal.org/project/views_media_browser
I'd like to use this on the site I'm building, because we will have a lot of images and the standard media browser isn't really good enough.
thanks,
andrew baxter
Hi Andrew,
Yes, if you install the http://drupal.org/project/token module you will be able to use tokens to do exactly that.
Go to the file field edit page for your content type and expand the date token list. To get "2012/01" you can uses the tokens "[current-date:custom:*Y*]/[current-date:custom:*m*]" for example.
Thomas Svenson My Blog http://www.tsvenson.com | Twitter http://www.twitter.com/tsvenson | Google+ https://plus.google.com/u/0/103859217787354138363
On 23/01/2012 12:46, andy baxter wrote:
Hi,
Is there a way to set the file storage path for media module files so that it makes a year/month/filename archive of the files, rather than just putting everything in the same directory? I had a quick look on google for a plugin that does this, but didn't find anything. I'm using drupal 7.
Also, it would be good to know if anyone has experience with the views media browser module?
http://drupal.org/project/views_media_browser
I'd like to use this on the site I'm building, because we will have a lot of images and the standard media browser isn't really good enough.
thanks,
andrew baxter