Closed (fixed)
Project:
Token
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2009 at 19:27 UTC
Updated:
20 Nov 2009 at 16:10 UTC
Hi,
I have the following PDF filename token configured, however for one content type, any node specific tokens (e.g. nid, title) fail to work.
Token setting: [site-name] - [title]
Other content types work fine. Does that seem like a token issue?
John
Comments
Comment #1
jcnventuraHow does it fail to work? Is the filename including the tokens, or is it the node path?
If it is the former, it is a token thing, if it is the latter then something weird is going on.
Comment #2
drupal_jon commentedFor the tokens:
[site-name] - [title]
It will create the file as:
Example.com - .pdf
The title, or nid, or anything node related seems to disappear completely. However, it only happens for a single content type.
Comment #3
jcnventuraIt seems like a token issue to me.
I only call the token module like this:
$pdf_filename = token_replace($pdf_filename, 'node', $node) .'.pdf';So if it replaces one token, but fails to replace the other for a single content type, I would guess it has something to do with that content type.. Maybe there's no title defined in that content type?
Anyway, moving this to the token issue queue.
João
Comment #4
drupal_jon commentedJust noticed that this appears to be fixed after updating various things including Drupal core to 6.14.