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.
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.
Comment | File | Size | Author |
---|---|---|---|
Screen Shot 2017-12-04 at 22.51.20.png | 17.28 KB | mattiasdk |
Comments
Comment #2
mattiasdk CreditAttribution: mattiasdk commentedComment #3
simeGreat idea. Could see this being handled with a special display suite views display rather than a block display.
Comment #4
swentel CreditAttribution: swentel at eps & kaas commentedThis will be fixed by #2939322: Provide entity context to DS block fields