When trying to input a path pattern for a node type using a CCK text field as part of the replacement pattern, both [field_fieldname-raw] and [field_fieldname-formatted] resolve to an empty string when the field in question contains only one character.
Comments
Comment #1
gregglesThat's a cck problem.
Comment #2
markus_petrux commentedI cannot reproduce this here. Then I tried with the following snippet, and it still works as expected.
If we cannot reproduce this, then it's pretty hard to guess what's going on. It could be caused by another module, or the one who invokes token module and processes the value generated by CCK.
Comment #3
gordon commentedI have come across this issue and I have found with the problem is. This problem only occurs during updates since the content.token.inc include is not included the content_token_values() is not available.
I have worked around this by adding the line
module_load_include('inc', 'content', 'includes/content.token');to my updates.
Comment #4
gregglesBrilliant work. So, how/where can we fix this in cck itself? I think the content.module should have the hook_token_values and hook_token_list in the .module itself and then they can include the includes/content.token.inc from there and call sub-functions as necessary.
Comment #5
gordon commentedThis is also a problem with the content taxonomy module as well.