0

I was trying to add a RSS feed view in Drupal 8. I selected feed row style for Fields, and clicked on Save and edit, but I got this message.

Row style plugin requires specifying which views fields to use for RSS item.

screenshot

What does this message mean?

  • 1
    It probably means you don't need an unformatted list of teasers, but of fields. So under PAGE DISPLAY SETTINGS change teasers to fields. Or choose a different "Feed row style". – leymannx Oct 28 '18 at 17:45
  • Thank you @leymannx. I changed 'Unformatted list' to 'Grid' and 'Teasers' to 'Fields'. I have updated the srceenshot. Still getting the same mesage. – web_developer Oct 28 '18 at 18:05
  • The error is confusing and probably caused by the code not verifying some conditions. Apart from changing the setting used to create a view, there is another method to get the view exactly the way you want it, and with a feed. – kiamlaluno Oct 28 '18 at 18:25
  • Why would you choose grid for an RSS feed? It has to be a simple list. – leymannx Oct 28 '18 at 18:41
  • @leymannx I am trying to recreate a website. In that site grid is chosen for RSS. That's why I selected grid. I have added the original site's settings screenshots. – web_developer Oct 28 '18 at 20:55
2

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 ways for not getting that error: The first one is selecting Table as Display format, and Content as Feed row style, in the page to create a new view.

screenshot

In this way, I got the view without errors.

screenshot

The second way is creating a view without telling the Views module to include a feed. It will be created after.

On the page shown to create a view, I don't select Include an RSS feed, and I click on Save and edit.

screenshot

On the next page, I click on +Add and choose Feed on the drop-down list that appears. (I cannot show it on the screenshot, but I can choose between Attachment, Block, Embed, Entity reference, Feed, and Page.)

screenshot

On the next page, on the bottom, you will get the following error.

Display "Feed" uses a path but the path is undefined.

screenshot

Click on No path is set, and enter the path you want for the feed.

screenshot

This is close to what the Views module gives you, with an exception: The feed is not attached to any page, since it says Attached to: None.

Click on None and select to which pages the feed must be attached.

screenshot

  • Thank you for the detailed answer. So is it not possible to select 'Fields' in Format -> Show ? – web_developer Oct 28 '18 at 20:39
  • If the view is not using fields, the feed cannot use them too. – kiamlaluno Oct 29 '18 at 7:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.