The token support in Drupal 7 does not include year, month, day or since. Especially year, month and day would be very useful with Pathauto for example.

Year: 2010 or 10
Month: 1, 01, Jan, January
Day: 1, 01
Weekday: 1, Monday
Week: 1, 01
Since: 1, one, 2, two... (I don't see the need for 01)

CommentFileSizeAuthor
#3 Selection_028.png109.74 KBDave Reid
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dave Reid’s picture

Status: Active » Fixed

Any date tokens in D7 can have a 'custom' format.

[node:created:custom:yyyy mm dd]

And all date tokens do have a 'since' value:

[node:created:since]

tsvenson’s picture

Wow, that is simply awesome. Took a quick look in the help file and it is a really nice improvement.

Over all, the changes in how to format and use tokens in Drupal 7 is such an improvement.

I think a link in the token lists to the help file could be added when not all available tokens are listed?

(Now smacking myself for not discovering this sooner)

Dave Reid’s picture

FileSize
109.74 KB

If you're using a module which shows the token tree UI (like the latest pathauto), this is what you see, so I'm not sure we need to add any documentation on this.

Selection_028.png

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.