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.

CommentFileSizeAuthor
token_cck_select.patch475 byteswrunt

Comments

dave reid’s picture

Status: Needs review » Closed (won't fix)

D5 is now unsupported, as well as Token module for D5.