Display page_1 is not always there

Created on 10 August 2023, over 1 year ago

Problem/Motivation

page_1 display is not mandatory to be inside the views.view.content config, hence after enabling the module you always have a warning because the page_1 doesn't exist.

Steps to reproduce

Change the display_id for Content view (e.g. page_content)
Enable the module.
Edit the view: /admin/structure/views/view/content
You have the warning message "Plugin ID 'page_1' was not found."

Proposed resolution

Remove the following code from config/rewrite/views.view.content.yml

page_1:
    display_options:
      rendering_language: '***LANGUAGE_language_content***'
    cache_metadata:
      contexts:
        - 'languages:language_interface'
        - url
        - url.query_args
        - user
        - 'user.node_grants:view'
        - user.permissions
      max-age: 0

Update documentation

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇷🇴Romania bogdan.racz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024