Views RSS view mode settings are completely broken

Created on 26 October 2015, about 9 years ago
Updated 21 February 2024, 9 months ago

Follow-up to #2409413: Remove fields that do nothing from the "RSS publishing" settings form β†’

Problem/Motivation

'title' is a special view mode hacked into the plugins. The default view mode 'rss' is provided by core but once you change the form you can never re-select. The teaser view mode might exist. The fulltext view mode almost certainly does not. I think we should fix all the view mode wonky-ness in another patch as it is likely to be hard. Basically, the whole view mode setting is currently very broken :(

    $form['feed_view_mode'] = array(
      '#type' => 'select',
      '#title' => t('Feed content'),
      '#default_value' => $this->config('system.rss')->get('items.view_mode'),
      '#options' => array(
        'title' => t('Titles only'),
        'teaser' => t('Titles plus teaser'),
        'fulltext' => t('Full text'),
      ),
      '#description' => t('Global setting for the default display of content items in each feed.')
    );

And the default value is RSS :(

Oh and the views are missing dependencies on the correct view mode if the default system view mode is used. What a mess.

Proposed resolution

Remaining tasks

User interface changes

API changes

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
SystemΒ  β†’

Last updated about 16 hours ago

No maintainer
Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024