Trying to use csm together with auto_nodetitle module. I configured the auto_nodetitle module to be set based on two tokens provided by CCK fields. However, the CCK field tokens do not get replaced in the node title.
Apparently, the tokens for a node get cached once per request in a static variable (of which the key is based on node id) by the token module. At the time that csm tries to substitute tokens, the node does not seem to contain any CCK fields, so no tokens for CCK are inserted into the cache. At a later stage, when auto_nodetitle does its job, the tokens from the cache are used, so no replacements for CCK field tokens take place.
Comments
Comment #1
jim0203 commentedThanks for locating this and for posting to the issue queue. I've recreated the bug as you describe it and your description seems more or less accurate. What appears to happen when CSM and Auto Nodetitle are both enabled is:
The fix I've put in place involves adding a third condition to the elseif clause on line 68 of csm.module, which prevents token_replace() being run by csm_form_alter(). This fixes the bug and doesn't effect any other functionality of the module.
This will be part of the next dev release which will roll out within the next twelve hours, and will be part of the first beta release of the module.
Comment #2
jim0203 commentedComment #3
cyberwolf commentedWow! Did not expect this one to get ever fixed. Thanks!
Comment #4
jim0203 commentedNeither did I! I've got a really busy year ahead and it's irritating me that I haven't got a 1.0 release of CSM out of the door yet. Two issues to go before a beta release ...