Closed (won't fix)
Project:
Token
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2007 at 15:59 UTC
Updated:
25 Oct 2010 at 22:14 UTC
Hi
I have a custom content type and it's first two fields are month (field_month) and year (field_year). The month is a cck integer type field and it's value list is
1|January
2|February
3|March
and so on.
Using pathauto I'd like the url to be in the form mysite.com/newsletter/2007/5, but what is happening is I'm getting mysite.com/newsletter/2007/may.
The only token available to me is [field_issue].
Any idea how I can have it use the key value (eg 5) instead of the label (eg may)?
thanks
Comments
Comment #1
gregglesI don't believe that's possible now, so I'm changing this to a feature request against the token_cck.inc file. Take a look in there for how to proceed.
Comment #2
dave reidMaybe you should use a Date module field instead.
Comment #3
cyberderf commentedWhat if someone wanted to do something like this ?
0 = output some text value
>1 = output the associated integer value
Is it possible to do this ?