Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I could not find documentations to my concerns and tried googling to no avail.
in the admin page i could not see even a short description of how it can be used. Can anyone point me to a documentation for the rewrite option and replacement patterns please.
And while I'm at this, could I write php codes in the textbox in the replacement pattern area?
Thank you.
Comment | File | Size | Author |
---|---|---|---|
#17 | feeds_tamper-rewrite-help-text-1246592-17.patch | 480 bytes | twistor |
#10 | rewrite-replacement-pattern.jpeg | 36.11 KB | asb |
#9 | available replacement patterns screenshot | 23.81 KB | shawngo |
#7 | feeds_tamper-replacement_patterns-1246592-7.patch | 442 bytes | robertom |
Comments
Comment #1
twistor CreditAttribution: twistor commentedThis was fixed in beta3. The help text was missing. The replacement patters look like [source_name].
No, PHP code cannot be used.
Comment #3
verres CreditAttribution: verres commentedsorry to re-open this -- but I'm also having trouble with this issue (replacement patterns not working). On my site, the replacement tokens are not being 'replaced' during the node creation. I've typed them into the Replacement Pattern form just as they appear below in the 'available replacement patterns' list -- but they are imported simply as text strings, (e.g., "[source_name]" in the tampered field) once the import takes place.
I've got token enabled -- is there a setting I'm missing? thanks
added: I've been playing with it more - I created a new cck type and a new import feed for it. On that content type, the feeds tamper module works correctly on some fields, but not all. It will rewrite (using tokens) a text field - but if I try to rewrite the 'body' field, it simply puts the tokens in as text (as above)....
would feeds tamper treat a cck field DIFFERENTLY than a standard node field such as body? I'm thinking this might have to do with permissions/node access or some such thing -- but so far I haven't figured it out....
Comment #4
verres CreditAttribution: verres commentedComment #5
verres CreditAttribution: verres commentedSolved - (at least I think so). The titles of the fields I was importing were capitalized - e.g., "Scanned Item". In the Available Replacement Patterns list - this would appear as: [Scanned Item].
however, in order for it to work, it must be entered into the Replacement Pattern box as: [scanned item].
I hope this saves someone else a few hours of headache.... (thanks to everyone who works on this module...it's really a great tool), cheers.
Comment #6
verres CreditAttribution: verres commentedComment #7
robertom CreditAttribution: robertom commentedYes, this solve the problem, but it seems to me a bug to fix.
I would upload a proposed patch that show on the list of "Replacement Pattern" the right replacement
Comment #8
asb CreditAttribution: asb commentedI'm confused; should the "Available Replacement Patterns" fieldset (?) be collapsible? on my site, it isn't collapsible, and thus there are no replacement patterns... What would the expected behaviour be?
Comment #9
shawngo CreditAttribution: shawngo commentedI had the same issue with tokens not being replaced when importing users. Changing the tokens to lowercase solved the problem for me as well.
@asb - I'm using the Rubik theme and I get a list of "Available Replacement Patterns" from the collapsed fieldset shown uncollapsed in the attached screenshot.
Comment #10
asb CreditAttribution: asb commented@shawngo: Thanks for the screenshot. This seems not to work for 'Fusion' based themes :-(
Running JQuery Update 1.3.2 and jQuery UI 1.7.3. Are there other dependencies?
Comment #11
fonant CreditAttribution: fonant commentedYup, the tokens do need to be lower case, and not as displayed in the UI.
Comment #12
JSCSJSCS CreditAttribution: JSCSJSCS commentedI just downloaded the current dev version and the token suggestions are now listed in all lower case, compared to Beta3 version that lists them as shown in the csv file.
Comment #13
Tschet CreditAttribution: Tschet commentedThanks for seeing the capitalization issue. I couldn't see what was wrong. Problem solved.
Comment #14
asb CreditAttribution: asb commentedIn my case, the release tagged as "recommended" simply wasn't working at all. Updating to the current dev release fixed the issue for me. Actually it's incredible what this module does, very helpful and highly recommendable. But don't use the "recommended" release ;)
Comment #15
rvdtuin CreditAttribution: rvdtuin commentedhelp text is still missing in beta 3
Comment #16
rvdtuin CreditAttribution: rvdtuin commenteduninstalled beta 3 and installed -dev
Still no help text and suggested replacment patterns.
I am using theme seven for the admin.
Can someone give me some directions??
thanks
Comment #17
twistor CreditAttribution: twistor commentedCan you give this a try?
Comment #18
rvdtuin CreditAttribution: rvdtuin commentedIs the patch for the -dev and / or for the beta 3?
At this moment I reinstalled beta 3 (uninstalled -dev).
because of this problem:
http://drupal.org/node/1694062
So can I use the patch for beta-3
thx
Comment #19
rvdtuin CreditAttribution: rvdtuin commentedoke the problem i mentioned before http://drupal.org/node/1694062
also occured in beta-3
Comment #20
stylesuxx CreditAttribution: stylesuxx commentedHey, lowercasing the tokens saved me some time.
Cheers
Chris
Comment #21
mamanerd CreditAttribution: mamanerd commentedSolution from #5 worked for me too, thanks a ton!!
Comment #22
twistor CreditAttribution: twistor commentedThis should be fixed. Please do not re-open this issue, there are too many different problems being reported. If you have a problem with the latest release, please create a new issue.
http://drupalcode.org/project/feeds_tamper.git/commit/13beb7d
Comment #23
twistor CreditAttribution: twistor commentedComment #25
SharonD214@aol.com CreditAttribution: SharonD214@aol.com commentedThanks #5 this was driving me nuts!