Closed (fixed)
Project:
Token
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Apr 2008 at 04:53 UTC
Updated:
10 Aug 2008 at 22:45 UTC
* The directory files/pdf/Fri, 04 has been created.
* The directory files/pdf/Fri, 04/04 has been created.
* The directory files/pdf/Fri, 04/04/2008 - 04:42 has been created.This is the file directory structure that is produced by ImageField when I upload a new image to it. I have the token set as [date-in-tz]. It would make much more sense to have it put the file in this directory structure /2008/04/02
Comments
Comment #1
jaydub commentedThe token module really should add more time/date related tokens to the
'global' category. There already is the [site-date] token but that's a full
date. It would be nice to add in the sub parts of the [site-date] so that
more could be done in yours and others cases.
maybe add in
Comment #2
quicksketchThis has nothing to do with Image field directly. The tokens you are using simply output in that format. If you need a specific token that is not yet exposed to token module, you can implement a custom module to expose any tokens you can imagine. However, since this isn't an imagefield request, I'm moving to Token and closing the issue.
Comment #3
AdrianB commentedThere's a patch here for this that works: http://drupal.org/node/236596#comment-869358