Needs work
Project:
Aggregator
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 Jan 2005 at 15:32 UTC
Updated:
16 Dec 2025 at 10:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
antipasto commentedHere's a patch for 4.5.2, but this will be implemented way better in 4.6:
http://writtorrent.sourceforge.net/2005/02/rss-20-feeds-with-enclosures-...
Comment #2
sulleleven commentedantipasto-
this doesnt change the aggragator's ability to parse enclosures... which this request is about.
I am going to look at aggregator.module and see what needs to be done.
Comment #3
dries commentedPatches should be against CVS HEAD, not against the DRUPAL-4-5 branch.
Comment #4
Uwe Hermann commentedI think this is fixed in HEAD. Can someone confirm and close this issue?
Comment #5
buddaNo, it's still not in the 4.7 branch or HEAD. I am working on something to enable this kinda support.
Comment #6
designerbrent commentedbudda, how is are the changes coming to add enclosure support?
Comment #7
LAsan commentedbudda: Any news on this issue?
Moving to cvs.
Comment #8
buddaThings got side tracked towards the FeedAPI module, which is being dissected to hopefully go in to Drupal core somehow.
Comment #9
mustafau commentedAttached patch brings enclosure support to Aggregator.
Comment #10
mustafau commentedRe-roll.
Comment #11
Anonymous (not verified) commentedThe last submitted patch failed testing.
Comment #12
mustafau commentedComment #14
mustafau commentedComment #15
robdee commentedComment #16
danny_joris commented+1
How has this 6 year old feature request never gotten any approval? Or am I missing something?
Comment #17
idiotzoo commented+1
This seems a bit of a no-brainer addition to the core aggregator. In Drupal7 there doesn't seem to be any other way to achieve the same results either, which I think there is in drupal6
Comment #18
Saoirse1916 commentedI would also love to see this added in, seems commonplace these days.
Comment #19
kathyh commentedRe-roll of patch #12 from cvs to git. Test: update.php and the sample RSS feed with enclosures is here.
Comment #21
kathyh commentedThis works on my machine - not sure why it doesn't here. In reading, may be the -text on the .tpl.php. Any help appreciated. Thanks.
Comment #23
valthebaldComment #24
alansaviolobo commentedit appears as though the patch is written for D7. will try to rewrite it for D8
Comment #25
jhedstromComment #31
CFG OCC commentedThe organisation I work for has a requirement for enclosure utilisation using D8 core aggregator. I have been charged with producing the solution and have produced an extension to core which is being tested internally at my organisation.
We are planning to deploy a local patch today to ensure the changes are retained, which once tested I will post here.
Many thanks,
Christian
Comment #32
CFG OCC commentedComment #33
jofitzSetting to Needs Review to run the testbot on @CFG OCC's patch in #32.
Comment #35
CFG OCC commentedAdded latest patch based on feedback from https://www.drupal.org/project/drupal/issues/16485#comment-12620453
Many thanks,
Christian
Comment #36
idebr commentedComment #38
stephen-cox commentedI have reviewed the patch, fixed a couple of errors with the fetching and saving of enclosure items and updated code formatting to Drupal standards from the codesniffer results.
Thanks,
Stephen
Comment #39
stephen-cox commentedComment #42
CFG OCC commentedWe are updating to Drupal 8.6 and therefore I will re-create this patch for 8.6
Comment #43
CFG OCC commentedComment #44
CFG OCC commentedComment #45
CFG OCC commentedComment #46
jhedstromResolving the test failures (and adding new tests to cover the new functionality) will be needed.
There are a few whitespace issues in this patch that should be resolved.
Adding methods to interfaces will be tricky in order to not break BC. One approach is to add a new interface, then have the Feed class implement both the
FeedInterfaceand the new one. And similarly, a new interface for the Item entity to implement too.Comment #48
ComNStay commentedHy,
fist, I'm sorry for my english "so Français" !
I apply the patch but when I update the feed enclosure are getting well, I have the images creates in the enclosure folder but field enclosure in DB still to NULL ...
An idea ?
thank for help ;)
Comment #50
stephen-cox commentedThe attached patch defines two new interfaces for aggregator feeds and items that deal with enclosures. It also now saves data to the enclosure DB field.
Using a single DB field for enclosure data is far from ideal because there are a number of things that need to be stored for each enclosure item (the patch stores them as a serialized array). Enclosure data should probably be stored in it's own database table, which likely means implementing enclosures as content entities.
As it stands, this patch will store the URL, type, size and file ID of the enclosure, but this data is only accessible through code (using the getEnclosure() and getEnclosureFile() methods on a feed item). Ideally this data should also be exposed to views so that enclosure media items can be accessed through the UI.
Comment #52
r0nn1ef commentedI like the idea @stephen-cox had of supporting enclosure as a content entity. The only question is which kind of entity; a custom entity with fields for the enclosure attributes or a file or media entity where the file is brought into the site where Aggregator is running? With a media/file entity, you could have duplicate content issues and with a custom entity, you have etiquette (and possible security) concerns about linking to a file on someone else's site.
Comment #57
stephen-cox commentedHere's a re-roll of patch #50 with Drupal 9 support.
Comment #58
stephen-cox commentedComment #59
stephen-cox commentedUpdated patch fixing test failures.
Comment #60
ranjith_kumar_k_u commentedFixed CS issues
Comment #62
stephen-cox commentedFixing tests.
Comment #64
spokjeThe
aggregatormodule has been removed from Core in10.0.x-devand now lives on as a contrib module.Issues in the Core queue about the
aggregatormodule, like this one, have been moved to the contrib module queue.Comment #65
larowlanhttps://docs.laminas.dev/laminas-feed/reader/ (which we use) supports enclosures, and now items are entities, this should be doable - we could add a file field to the item entity and customise the parser
In fact, you could do this on your own without hacking core using existing plugin/entity hooks to modify the parser class and fields.
Comment #66
it-cru@larowlan: would be nice to store enclosure URL and maybe other data in aggregator_item table or add method to get this data during import for further processing of imported items.