Closed (fixed)
Project:
Feeds
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Dec 2009 at 00:06 UTC
Updated:
3 Jan 2014 at 00:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
alex_b commentedThis is a feature request. Currently there is no way of specifying the input format to use when creating feed items.
For the record: this sounds dangerous. In case you are aggregating from a source that is not 100 % under your control and to be trusted, importing into nodes that have the PHP filter enabled per default is a *serious* security risk.
Comment #2
netentropy commentedoh yeah, i know and would never do it on a live site, i was just testing this module and the only defualt format that would allow the images to show from the RSS was PHP
Comment #3
tstackhouse commentedSubscribing. This was a feature in FeedAPI that I'm sorely missing as I used it to pull twitter posts and use a custom input format to link twitter @usernames and #hashtags.
Comment #4
cglusky commentedThought I might have been going crazy(er). +1 on the use case for specifying input formats. I was using the filter from the Twitter module with FeedAPI.
R,
C
Comment #5
cglusky commentedTried using Better Formats module to see if it would pick up the feed item node type defaults for programatically created nodes from Feeds - It does not work.
This is a really handy feature so hope to see it get ported from FeedAPI
Comment #6
alex_b commentedIf somebody wants to run with this, I am available for providing guidance. Find me on irc.freenode.net #drupal.
Comment #7
cglusky commentedHave this done and doing a bit of testing. Will upload patch shortly.
Comment #8
cglusky commentedHere's a patch against alpha13. I just took some of the code from FeedAPI and moved it over with a few additional lines to address Feeds architecture.
Lightly tested using a Twitter feed with Twitter modules filter.
Not sure if "Default format" will work with the per content type input format defaults set by a module like Better Formats, since Drupal core takes a more global approach to default input formats.
Comment #9
alex_b commentedThis is looking very good. I'm not worried about 'Better Formats' integration. If it is desired, we should break it out into a separate issue.
Comment #10
cglusky commented@alex_b would you prefer i keep this patch up to date for latest alpha/beta releases or just change it to dev?
Comment #11
alex_b commentedPatches always go against dev... should just apply.
Comment #12
mcarbone commentedPatch works great for me.
Comment #13
alex_b commentedTested, this works nicely. Tweaked UI text and rerolled against head.
We need a minimal test for this though. Can be part of the last block in FeedsRSStoNodesTest::test() starting with "Now create a second feed configuration that is not attached to a content".
Just set a filter input format on the importer before importing and double check the filter format on a feed item node.
Comment #14
cglusky commentedHmm. Never written a test. I will have a look and see if it's something I can pull off without hurting myself...
I stole the full_html_format query from some other tests and the rest of it from one of your tests. Have no idea if this would work. As usual, I know just enough to be dangerous.
Comment #15
alex_b commentedHere is a tutorial for writing tests - http://drupal.org/node/395012 . Writing tests is really simple, judging from what I'm seeing in #8 you can do it :-)
Comment #16
cglusky commented@alex_b,
sorry for the delayed reply. been on the road and not sure where all my d.o. email is disappearing to...
let me have a look at that link you gave and see about getting smarter on simple tests.
r,
c
Comment #17
cglusky commentedSorry, i am about to get blasted by another project and do not want to lead anyone on .. i am not going to have time to figure out how to write a simple test for this. again sorry.
R,
C
Comment #18
seanberto commentedLooks like this patch needs to be rewritten just a bit for 6.x-1.0-beta1.
Comment #19
alex_b commented#18: thanks.
Comment #20
jeffschulerRe-roll for changes that just came out in 6.x-1.0-beta2, plus some simple [simple]tests.
Feedback appreciated!
Comment #21
alex_b commentedThank you!
Minor adjustment to UI, some periods on comments: RTBC.
Comment #22
alex_b commentedAll tests passing. Committed. Thank you again.
http://drupal.org/cvs?commit=391024
Comment #23
cglusky commented@jeffschuler thanks for picking up my simple test slack!