Skip to main content
Share Your Experience: Take the 2024 Developer Survey
10 votes

How do I hide the link to the RSS feed on the term page?

Under "Structure", "Views", open the "Taxonomy term" view, on the Feed display, under Feed settings set Attach to to none.
Oana Hulpoi's user avatar
  • 1,418
10 votes
Accepted

Import CSV to nodes/entities in Drupal 8 including a UI

I do this all the time, making use of migration configuration entities (provided by the migrate_plus module). Define a migration plugin in your migration module's config/install directory, using the ...
Mike Ryan's user avatar
  • 1,333
7 votes

Disable RSS feed

Drupal 7 For D7 simply use Disable RSS. This module will disable the core RSS feed at http://example.com/rss.xml, and remove any reference to it in the html header. Drupal 8 In D8 the feed ...
leymannx's user avatar
  • 18.2k
6 votes

Automatically import data from Google spreadsheet using feeds module

Sorry, bit late to the party. How I solved this was: Publish the file to the web using the option in Google Sheets' file menu. This gets you a special link to an always up-to-date version with the ...
Dr. Gubó's user avatar
5 votes
Accepted

How to programmatically alter feed item values before saving

Thanks to No Sssweat, I managed to use an EventSubscriber using afterParse event to do this job. File 1: mycustommodule/mycustommodule.services.yml services: mycustommodule.feeds_subscriber: ...
Mohammed J. Razem's user avatar
4 votes
Accepted

How to import multiple images with Feeds importer from CSV?

You can accomplish this with choosing a character to separate your image urls with in the CSV file and using the Feeds Tamper plugin "Explode". Separate the image URLs in your CSV file with a certain ...
MegaChriz's user avatar
  • 800
4 votes

Remove import instance from list using Migrate Tools module

So you want to get rid of the migrations so that they don't appear in the drush ms output? Do this: Removing imported content Upon reading your question the second time, I thought you might even be ...
Jigarius's user avatar
  • 3,119
3 votes

How to skip (don't update) some fields from existing node during import if this field already has a value?

Had the same problem. I finally used hook_feeds_presave(), and unset the field I wanted to skip. Here's the code: function mymodule_feeds_presave (FeedsSource $source, $entity, $item, $entity_id) { ...
pineapple-na's user avatar
3 votes

How to display an image in a Views RSS feed

First add the Media RSS namespace to your views-view-rss.tpl.php <rss version="2.0" xml:base="<?php print $link; ?>"<?php print $namespaces; ?> xmlns:media="http://search.yahoo.com/...
Ben Mirkhah's user avatar
3 votes
Accepted

RSS item elements not being not being read by XML Reader

After some research i did manage to find my way out: I implemented hook_views_rss_namespaces to add a custom namespace and the custom items under the namespace: function Mymodule_views_rss_namespaces(...
shuva mallick's user avatar
3 votes
Accepted

How can I avoid the feed link is printed in my theme?

If this is a view, you can hide the feed icon using this method. Go to Structure > Views > Frontpage > Edit. Then click on "Feed" at the top. In the second drop-down box, select "Disable Feed." ...
chrisshattuck's user avatar
3 votes
Accepted

How to import decimal fields using Feeds?

It could be that the there is an issue with how it's interpreting the value especially if you are in a non-English context. For example, in Drupal's terms if you have a decimal value it's formatted ...
Remog's user avatar
  • 561
3 votes
Accepted

How to generate an XML feed?

You can do it using the Views Data Export module (Most popular) This module is designed to provide a way to export large amounts of data from views. It provides a display plugin that can rendered ...
No Sssweat's user avatar
  • 31.3k
3 votes

how to add cache tag in custom rss feed

Add the cache tags to the cacheable metadata of a cacheable response: use Drupal\Core\Cache\CacheableResponse; $response = new CacheableResponse(); // ... $response->getCacheableMetadata()-&...
4uk4's user avatar
  • 100k
3 votes

Adding RSS feed view

The error just means that the feed row style require fields, but the view being created doesn't have fields. The error is confusing, since I can create a view like that and add a feed. There are two ...
apaderno's user avatar
  • 97.5k
3 votes
Accepted

access denied feed/[id]/import for a feed item

Feeds locks a feed when you start an import from it. As soon as the import finishes, the feed gets unlocked again. When a feed is in a locked state, you cannot initiate another import. Therefore feed/...
MegaChriz's user avatar
  • 800
3 votes
Accepted

How do I use Feeds Tamper to process multiple CSV columns into a single field?

Ok, here's the correct way to do this. getSource() will return an array with keys for all the CSV columns. The column names are processed as follows: single words: Capitalization is kept. (yellow, ...
Patrick Kenny's user avatar
3 votes
Accepted

Why does core create RSS feeds for taxonomy terms?

The Drupal 9 standard profile creates RSS feeds for taxonomy terms by default. If you don't want the feeds, you can remove (delete or disable) them from the taxonomy term view in Admin -> Structure ...
Patrick Kenny's user avatar
2 votes
Accepted

How to import nodes with custom fields using Feeds module and Feeds JSONPath Parser

There are 3 places where the problem could lie: Data not being correctly parsed by feeds Data not being correctly saved by feeds Problem with the field definition itself Number 3 is ruled out since ...
littledynamo's user avatar
  • 1,110
2 votes
Accepted

How to create RSS feed for particular content type in drupal 8?

Can create the views as well for generate the rss feed with following steps: Enable Serializer and RESTful Web Services module, available in Drupal 8 core. Create views for retrieving the contents of ...
Ankit Agrawal's user avatar
2 votes

Feeds import - Skip importing item based on some condition

You can do this using hook_feeds_presave to check the data prior to it being saved. function mymodule_feeds_presave(FeedsSource $source, $entity, $item) { // check that this is fired only for the ...
Joseph Dempster's user avatar
2 votes

How to programmatically import a feed?

This is working for me. Note: You will need to know the numerical $id of your Feed from the D8 DB table feeds_feed. In my case it is 1 so $id = 1. use Drupal\feeds\Entity\Feed; function ...
brooke_heaton's user avatar
2 votes

How to use external JSON API to create/update node's fields?

If there's no complicated authentication/request method for the service (e.g. a simple HTTP GET for http://service.example.com/api/siteinfo/1), then a combination of Feeds, Feeds extensible parsers, &...
Shawn Conn's user avatar
  • 26.9k
2 votes
Accepted

User field imported with Feeds but not showing in user edit page?

I can't delete foo and recreate it for it contains several data Here is how I would try to fix this: Backup your entire Drupal Database. With phpmyadmin or some other database manager/viewer, find ...
No Sssweat's user avatar
  • 31.3k
2 votes

Remove the URL aliases that don't have a node

A core bug causing this error was fixed for Drupal 8.2 and 8.3: PathItem::delete() never runs because the path field type is a computed field in disguise The fix for this problem, then, should ...
mlncn's user avatar
  • 1,482
2 votes

How do I programmatically populate a field if another one is empty?

Create a custom module, in mymodule.module use hook_node_update function mymodule_node_update($node) { if (!isset($node->field_example[LANGUAGE_NONE][0]['value'])) { // If field example is ...
No Sssweat's user avatar
  • 31.3k
2 votes
Accepted

Rewrite a Views Field to get rid of accents. I need roman alphabet characters for a csv export

Setting "Character encoding conversion" in the data export view's CSV file settings to: ISO-8859-1//TRANSLIT should accomplish what you're attempting. That will convert the names to the ISO-8859-1 ...
hampercm's user avatar
  • 958
2 votes
Accepted

Can't import from XML using Feeds importer and XPath parser

Solved this on my own, the problem was that in context I had to write //book, instead of book. Stupid mistake which caused me headache for 2 days. I hope this will be helpful for people who will face ...
Viktor's user avatar
  • 319
2 votes
Accepted

How do I import a feed in a node?

The solution is described in: https://ohthehugemanatee.org/blog/2017/06/07/stop-waiting-for-feeds-module-how-to-import-remote-feeds-in-drupal-8/ 1) Download and enable migrate_plus and migrate_tools ...
Justme's user avatar
  • 1,248
2 votes
Accepted

hook_feeds_processor_targets_alter - how to set a value not in the feeds source?

I managed to get the answer to this question. In MYMODULE_import_filename() we can get the data we want to import, in my case is just a simple text: 'file.csv'. The simple way to do it is like this: ...
zephirus's user avatar
  • 377

Only top scored, non community-wiki answers of a minimum length are eligible