Closed (works as designed)
Project:
Feeds Tamper
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
28 Mar 2015 at 14:38 UTC
Updated:
9 Nov 2018 at 20:48 UTC
Jump to comment: Most recent
Comments
Comment #1
twistor commentedIt seems like the find/replace or Find replace REGEX plugins will work.
I'm not entirely sure what you are asking, if you could try to re-word your question, I could help better.
Comment #2
Anonymous (not verified) commentedI want to do that when you import images, their names were changed. ie the original name of image from other sites - qwe.jpg, and it is necessary that it is renamed to [title].jpg
Comment #3
twistor commentedThis is not possible. Since you need to download the image, the file name needs to stay the same.
Comment #4
paul_constantine commentedSorry to open a long-gone issue.
I have the file already on my localhost - no need to download it. But I still need to change the filename of the jpg because a third-party app just updates the jpg under the same name. So the name stays the same, but the content changes and is applied to a node-type with each feed update.
Feeds itself just adds a version number to the file like this x.jpg, x-0.jpg, x-1.jpg, x-2.jpg ...
The xml feed contains a name for the file. But whenever I use the feeds tamper function "rewrite" and add the token for the image name (from the xml feed) I get an error message "The file cover_name has an invalid extension" and no image is imported. The xpath parser is using that name for the image title, and the image alt title ... so that's working.
Why doesn't it work for the filename as a whole? Renaming files is not such a new concept.
Or am I using the wrong plugin for my task?
Best wishes,
Paul
Comment #5
paul_constantine commentedMaybe I need to simplify my question.
What exactly can the plugin "rewrite" acctually rewrite?
Is it possible for this plugin to rewrite the filename of a jpg-file in the feeds folder on the localhost?
Some input would be great.
Many thanks,
Paul
Comment #6
sano commentedthe rewrite plugin allows you to construct a new string out of random (custom) text and the tokens listed below the text area in the plugin. It does not rewrite any file names or paths.