Display field doesn't allow values

Created on 3 January 2025, 12 days ago

Problem/Motivation

When using Views Reference in a node, the display field does not permit entry of a value.

Steps to reproduce

Install Views Reference in a new Drupal 10.4.0 site
Generate some nodes with devel generate
Create a simple view "Simple View" listing some nodes. Make sure it has a block display.
create a content type "Accordion"
add a views reference field "Accordion Views Reference" for your view and select "block" as the display type
add a node of type "accordion" and select your "Simple View"
Notice that the "display" dropdown (required field) shows "-Select-" but does not show "block" as an option
This means you can never save the node with the view embedded.
This seems to work fine when the views reference field is added to a paragraph
Also when trying the viewfield module, that seems to work fine as an alternative but it doesn't have the ecosystem that views reference has.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇺🇸United States selwynpolit

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024