Closed (fixed)
Project:
Display Suite
Version:
7.x-1.4
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Nov 2011 at 04:23 UTC
Updated:
6 Apr 2012 at 23:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
humansky commentedWanted to add a screenshot of my settings, perhaps I'm missing something
Comment #2
Grzegorz Zbiński commentedSame here.
I have block view returning multiple users pictures according to entity reference field atached to node. This is my way to have multiple authors for content type instead of core author. When I'm looking in views preview with typed node id in arguments line it works fine - I see expected results (users filtered by entity reference in that node).
I've attached this view block via ds layout for node type with block field - unfortunately I see my view as without argument. I'm missing "pass arguments" as it was in panels D6. But panels was to heavy for me (to much surrounded divs, yslow screams on pages with panels).
I would be happy if passing args for views will be committed one day in ds.
Comment #3
swentel commented@Grzegorz Zbiński: try using a 'dynamic field' and enabling the 'views content' module. With that you'll be able to insert a view into that field and pass arguments.
@humansky : at this point, only one argument is passed iirc, I only tested it with one so far, I'll have todo some tests to verify.
Comment #4
Grzegorz Zbiński commented@swentel: works, thanks! I was looking for 'views content' module for a long time :) but as I suppose You meant Viewfield module. I didn't knew there is dev release for D7 of this module.
So right now I got content type A with multivalue reference to user (entityreference). This field is hidden via display. Content type A has second (in my opinion redundant) field of type Viewfield attached to View returning user pictures and other fields with passed argument [node:nid].
The best:
Content type B has reference to A. I was pretty sure, that when I will be looking on any B node Viewfield won't work (view was made to work with nid from A content type). But it works! So I'm loking on B node (nid=234) with reference to A node (nid=123) and Viewfield from A node is beeing rendered using arg=123. What a surprise!
Comment #5
swentel commented