I am trying to use a custom token that I created with the Custom Tokens module in a Pathauto pattern, but Pathauto keeps rejecting it as invalid:

The Pattern for all Minutes paths is using the following invalid tokens: [node:group-field-conditional].

The same custom token is working fine in the Automatic Nodetitles module. I haven't a clue how to fix this myself and I would greatly appreciate any help!

Comments

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

Make sure to clear your cache after creating a new token.

Zidewinder’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Ah, thank you so much! That did the trick.

colan’s picture

Status: Closed (works as designed) » Active

Cache clearing has no effect.

I've got my custom token working perfectly in a text field with token_filter, but it keeps telling me it's invalid here.

I also tried this another way: I tried putting the text field itself in as a token, "[node:field_id_text]", instead of the custom token that's in that field. Pathauto accepted it, but now it simply prints out the token name in the path: "tokentypetokenname".

How can i tweak either approach to make it work?

colan’s picture

Status: Active » Closed (works as designed)

Looks like I had to use the "node" token type instead of rolling my own.