Posted by anrikun on August 7, 2009 at 4:31pm
Jump to:
| Project: | File (Field) Paths |
| Version: | 6.x-1.4 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hi,
When creating a FileField, I've checked in "File path cleanup settings" and "File name cleanup settings":
- Cleanup using Pathauto.
- Convert to lower case.
- Transliterate.
The problem is that when filename contains a single quote ('), it is replaced by "039" when it should be replaced by Pathauto's separator (-).
Such problem doesn't occur when pathauto aliases node titles so I think it's only related to FileFields.
Comments
#1
This functionality isn't added by FileField, you should try to determine which module (FileField Paths or Transliterate) is causing the problem and transfer the issue there. FileField doesn't provide any of the options you've described.
#2
Alright, let's try FileField Path then.
#3
I'm assuming you're using the non-raw version of the token?
Try using the 'raw' version, should fix the problem.
Cheers,
Deciphered.
#4
Ooops,
You are absolutely right!
Stupid mistake I made :-)
Thanks!
#5
Hi,
I have the same problem with quotes.
I changed from [title] to [title-raw] and it works now for the title. But I cannot find the token -raw for the filefield description, so when I put this, single quotes are replaced by 039:
[title-raw]-[filefield-description].[filefield-extension-original]
Is there any -raw token for the description?
Or how to avoid 039 and other similar replacements?
#6
Hi J0nathan,
Filefield Paths only takes care of paths and file names.
Your issue, which I also encounter, is certainly related to Imagefield Tokens.
This discussion might also be of interest : #559056: Fields with apostrophes not displaying correctly
#7
Thank you.
I posted there: #926966: Looking for the token [filefield-description-raw] to resolve "single quotes are replaced by 039"