A filefield on a simplenews content type doesn't quite handle filefield path settings correctly: The file is moved correctly, however...
- The various CCK formatters (Generic files, Path to file, URL to file) show and link to the file's path before it was moved. A View with a file relationship shows and links to the correct path. Once you edit the node and save it, the CCK formatter will display it correctly. If you go to the Display fields settings page and save it the links formetters will be begin to display correctly, even if you don't change any settings. (Strange.)
- The email sent by Simplenews, using the same CCK formatter, contains a broken link to the same path of the file before it was moved.
I tested this on a fresh Drupal 6.15 installation with nothing installed but the necessary Simplenews, Filefield, Filefield Sources, Content (CCK), and Token.
Comments
Comment #1
decipheredHi TravisCarden,
I just did a quick test and everything seemed to work fine.
When you say the CCK Formatters are showing the old path, is this after you save the node or this during a preview? If it's during a preview, that's expected behaviour, the file's don't actually get processed until the node is saved as the node tokens (such as [nid]) may not be known until this time.
I haven't yet tested the email version as my current development server isn't setup to send emails, but I will get that sorted and give that a shot.
Cheers,
Deciphered.
Comment #2
traviscarden commentedNew information: this only happens when you select a "Send action" of "Send one test newsletter to the test address" when you create the node. It doesn't happen with either of the other two options.
Thank you for looking into this for me, Deciphered. In response to your question, I'm saying that after I save a new node it shows the old path.
Comment #3
decipheredNo longer supporting Drupal 6 issues for this module.