I am new to Drupal (utilizing Drupal 8) and have been struggling to get content material from a block I’ve create to show when accessing the view.
I’ve created a “service” view (web page) which lives on the path “/service”. I’ve configured the view to show the specified fields from the “service” content material sort. The view makes use of a contextual filter on the title of the “service” content material sort which permits clear URLs to work “/service/name-of-service”
The above works nicely. I am working into issues with an “information” view (block) that I’ve created. The “information” block pulls in several fields from the identical “service” content material sort. I made a decision to make use of a block for the remaining fields because it allowed me to position them in a particular block area that works for our desired web page structure.
I’ve tried establishing a contextual filter within the block to filter by “ID” and supplied a default worth of “Content material ID from URL”, however I can not get this to work, no fields show in any respect. If I flip the setting to “Show all outcomes for the required area”, fields do show, nevertheless, the content material of the fields displaying within the “information” block just isn’t pulling from the identical node (as a result of there isn’t any contextual filter).
Is there a method I can setup a contextual filter to perform this? I have been ready to make use of the contextual filter by ID efficiently when working with the node itself, however cannot get the identical conduct when utilizing views.