I created a Dynamic Field which I use to attach a View Block to the bottom of my display. The view block accepts two contextual filters, Content NID and Taxonomy Term. DS passes the first argument but does not seem to want to pass the second argument to the block. Has anyone else ran into this issue or am I doing something wrong? I'm relatively new to DS.

CommentFileSizeAuthor
#1 Dynamic_Field_Settings.png125.79 KBhumansky

Comments

humansky’s picture

StatusFileSize
new125.79 KB

Wanted to add a screenshot of my settings, perhaps I'm missing something

Grzegorz Zbiński’s picture

Same 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.

swentel’s picture

@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.

Grzegorz Zbiński’s picture

@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!

swentel’s picture

Status: Active » Closed (fixed)