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

greggles’s picture

Title: cck integer field » cck integer field - value and text representation
Project: Pathauto » Token
Version: 5.x-1.2 » 5.x-1.x-dev
Component: Miscellaneous » Code
Category: support » feature

I 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.

dave reid’s picture

Status: Active » Closed (won't fix)

Maybe you should use a Date module field instead.

cyberderf’s picture

What 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 ?