{
  "id": 2440173,
  "title": "eZ Publish's Native RSS Import: Making It Actually Import <enclosure> Media (2012)",
  "url": "https://urgent.news/2026/08/21/ez-publishs-native-rss-import-making-it-actually-import-enclosure",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-21T22:11:51.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/hamdi_laadhari/ez-publishs-native-rss-import-making-it-actually-import-media-2012-2lk5"
  },
  "original_language": "en",
  "account": "In 2012, eZ Publish, now known as Ibexa DXP, had a native RSS import feature that allowed users to import content from RSS feeds into eZ Publish content objects without writing any code. However, this native feature did not import the media referenced in the enclosure tag. The enclosure tag contains information about the media, such as the URL, length, and type. This article explains how to fetch the media and insert it into eZ Publish content objects.\n\nThe article outlines two implementation methods. The first is a quick and dirty method, which involves modifying the cronjobs/rssimport.php file, which is called by cron to fetch new items from the RSS feeds configured in the back office. The article explains how to add handling for the ezimage attribute in the setObjectAttributeValue() function. This modification allows eZ Publish to fetch and store the media referenced in the enclosure tag.\n\nThe second method is a cleaner implementation. Instead of directly editing the cron script, users can copy it into their own extension and make the necessary modifications there. This approach allows them to take advantage of hooks in the rssFieldDefinition() method that enable them to extend the definition from custom extensions. By including the custom extension's rssimport.php file and merging the field definition, users can seamlessly integrate the media import functionality into their eZ Publish installation.",
  "summary": "Archival repost — originally published on my old blog on July 20, 2012. Translated from French, lightly cleaned up for dev.to — I also fixed smart-quote encoding issues throughout the PHP code blocks that would have made them fail to parse. eZ Publish is now Ibexa DXP, but the kernel mechanism described here (and the \"quick and dirty vs. extension hook\" tradeoff) is unchanged. eZ Publish lets you…",
  "key_points": [
    "eZ Publish had native RSS import in 2012",
    "Native import didn't handle enclosure media",
    "Two methods explained for media import"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}