When I created a CCK text field with a select list widget, its value wasn't available as a token when using tokens in the auto-nodetitle module. I investigated the issue, and found that it was due to a call to content_view() in token_cck.inc. The call was mangling the value in my cck field. content_view() tests $node->in_preview, calling _content_widget_invoke('process form values', $node) if it is set. I found that setting $node->in_preview = true just before the call to content_view() in token_cck.inc fixed the problem.
| Comment | File | Size | Author |
|---|---|---|---|
| token_cck_select.patch | 475 bytes | wrunt |
Comments
Comment #1
dave reidD5 is now unsupported, as well as Token module for D5.