Closed (fixed)
Project:
Feeds
Version:
7.x-2.0-alpha4
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2012 at 06:22 UTC
Updated:
13 Nov 2012 at 10:10 UTC
I want to be able to choose an input filter when I import. How can I do this? especially when I'm importing HTML to a custom a field
Comments
Comment #1
dooug commentedFeeds does allow to set the node body format, but I don't think Feeds supports setting a custom field's format.
If you are familiar with writing a custom module, try the suggestions in this issue: #1191184: Update Feeds News feature
This code is from comment #3 in the issue I mentioned:
Replace your node type where it says
feed_whoiand replace the$node->body...with something like$node->field_CUSTOMFIELDNAME['und'][0]['format'] = 'full_html';.Comment #2
andyf commentedJust thought I'd add that the text format configured for the processor is also used for any text fields. AFAICT there's currently no support for per-field configuration of text formats. HTH
Comment #3
twistor commentedAs stated in #2, setting the input format is supported on the Processor settings page.
Comment #5
ibar commentedSetting the input format can be set on the Processor settings page as noted in #3 but since the upgrade to feeds-7.x-2.0-alpha6 it doesnt work any more. Although I have set it to Filtered HTML it imports the body in plain text, so I have to open the created node and resave it in order to work.
Is there a fix for this?
I will try o implement the new module creation mentioned in #1191184: Update Feeds News feature.
Comment #6
lyricnz commentedYes, it was briefly broken. WIll be fixed in the next release. See #1807920: Imported nodes have NULL format.
Comment #7
mrharolda commentedFix confirmed in feeds 7.x-2.0-alpha7!
http://drupal.org/node/1822298