I've been digging for an hour trying to find this information; what values do I feed to pathauto if I want it building my URL based on the date field of the node? The field is named field_time, and I'd like pathauto to build a URL such as this:

playlist/[field_time-year]/[field_time-month]/[field_time-day]/[field_time-hour]/[field_time-minutes]

I checked in the date_pathauto.inc file in my module, and came up with this: playlist/[field_time_y]/[field_time_m]/[field_time_d]/[field_time_h]/[field_time_n] based on the code there. No luck. Where can I find such info?

Comments

Miszel’s picture

I have the same problem. Any luck with sorting this out?

traviscarden’s picture

Title: Proper values for date fields in pathauto paths? » Pathauto Doesn't Use CCK Date Field Value
Version: 6.x-2.0-rc2 » 6.x-2.0-rc6
Component: PHP4 Module » Date CCK Field
Category: support » bug

I have the same problem with the current release of the Date module. As I do not have the Date PHP4 module enabled I do not think the problem is related to it (though the issue was formerly assigned to its component). Similarly, as this appears to be a bug, I have re-categorized as such.

karens’s picture

Status: Active » Fixed

There were some problems with pathauto tokens earlier, but they should be working right in the latest -dev code. Your patterns aren't quite right though. There is no token [field_time_y], it would be something like [field_time-yy] or [field_time-yyyy]. There is a drop-down list of available tokens below the node types in the URL aliases screen you can use to find the right values.

Status: Fixed » Closed (fixed)

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