Closed (fixed)
Project:
Date
Version:
6.x-2.0-rc6
Component:
Date CCK Field
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2008 at 16:00 UTC
Updated:
26 Jan 2009 at 17:50 UTC
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
Comment #1
Miszel commentedI have the same problem. Any luck with sorting this out?
Comment #2
traviscarden commentedI 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.
Comment #3
karens commentedThere 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.