I'm trying to display a list of projects, which a referenced to a theme, in the teaser view-mode of each of my themes.

When making a DS Block Field with the selected views list, which currently shows all projects, and including it in the teaser of my content type theme, I'm not able to pass the nid of the theme to the view. In the block config setup page, there's a drop down which displays my contextual filter (reference field to themes), but it's empty.

Dropdown

I can't find any documentation on how to pass a value in to this config page, so that I can select it. I thought that maybe a Token Field would make it possible, but I'm only able to display the current nid in the teaser, not find a way to pass it to the views contextual filter.

Anyone had any luck with this, and are able to share their way of succeding with this?

Regards,
Mattias

PS: I could to it by making a Views Reference filter in the theme content type and provide the token manually as an argument on each of the theme instances, but I'm not interested in making this a manual job. It should be automatic, every time a new theme is added.

CommentFileSizeAuthor
Screen Shot 2017-12-04 at 22.51.20.png17.28 KBmattiasdk
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mattiasdk created an issue. See original summary.

mattiasdk’s picture

Issue summary: View changes
sime’s picture

Great idea. Could see this being handled with a special display suite views display rather than a block display.

swentel’s picture

Status: Active » Closed (duplicate)