Links to feeds included by default

In our Plone sites, we use a Folderish content type (collective.nitf) to create Articles, and at this content type makes no sense to include the plone.links.RSS viewlet that adds links to feeds (example):

<link rel="alternate" href="http://www.brasil2016.gov.br/pt-br/noticias/boulevard-olimpico-movimenta-zona-portuaria-do-rio-de-janeiro/RSS" title="Boulevard Olímpico movimenta zona portuária do Rio de Janeiro - RSS 1.0" type="application/rss+xml" />
<link rel="alternate" href="http://www.brasil2016.gov.br/pt-br/noticias/boulevard-olimpico-movimenta-zona-portuaria-do-rio-de-janeiro/rss.xml" title="Boulevard Olímpico movimenta zona portuária do Rio de Janeiro - RSS 2.0" type="application/rss+xml" />
<link rel="alternate" href="http://www.brasil2016.gov.br/pt-br/noticias/boulevard-olimpico-movimenta-zona-portuaria-do-rio-de-janeiro/atom.xml" title="Boulevard Olímpico movimenta zona portuária do Rio de Janeiro - Atom" type="application/rss+xml" />

It looks like every Folderish content type has those links. What is the right way to remove them to avoid unnecessary network traffic by robots?

Disable syndication by default in your site syndication settings.

thanks, that solved partially the issue.

I see that Archetypes-based collections and folders are marked as ISyndicatable but, where are we defining that every Folderish Dexterity-based content type is also ISyndicatable by default?

shouldn't that have to be explicitly declared?

Everything is ISyndicatable by default; however, the site setup settings do not render all items with feeds available by default. That's a setting in site setup.

Here is what enables the ability to do syndication for dexterity: https://github.com/plone/Products.CMFPlone/blob/master/Products/CMFPlone/browser/syndication/configure.zcml#L10

However, I really think you want to just turn off syndication by default in site setup. Check out @@syndication-controlpanel and the Enabled by default setting.

2 Likes