I'm using Token with Automatic Nodetitles to automatically generate a node title for a created content type. One of the token replacement patterns is a CCK node reference field. For some of the nodes, this field contains an apostrophe as in "Saint Mark's Choir". The generated title for the node however doesn't display the apostrophe; instead it replaces it with "&#039" (minus quotes). The name of the particular pattern I'm using is [field_performer-title]. I've also tried [field_performer-link] but get the same results. I have the current dev version of Token, Automatic Nodetitles, and CCK. I'm not sure where the issue lies, so I'll copy this issue to the A.N. issue queue as well.

Comments

dzazi’s picture

I'm having an issue with this as well...

It seems like the [nodereference_field-title] is outputting the view of the referenced node (as chosen in the display fields options) rather than the title as expected, and thus double encoding the html entity for " ' ".

I think this issue ( http://drupal.org/node/192502 ) and patch is related, but the maintainer doesn't seem to want to apply it to the 5.x branch of token and wants it fixed in the 6.x branch of CCK instead.

dave reid’s picture

Title: problems with punctuation in CCK node reference token » Provide raw tokens for CCK node reference fields
Component: Miscellaneous » Code
dave reid’s picture

Status: Active » Closed (won't fix)

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