Filter by third argument in Drupal Views

I am trying to create filtering of a block view by the third argument of the path (in fact, an alias), but cannot be successful.

The path where the block is displayed is sitename.com/first/second/third.

Actually, the third argument is the author of the node, in the end, I'm trying to display a block in which only the created content is the author of the node block in which the block is located ... Ie: there must exist in the Garage node content type created by user Joe Cars content type block created by Joe. Then the node path would be garagecars.com/garages/spain/joe.

I tried to set arguments 3 Global:Nulland then User:Uid, but it does not work.

Caption of the arguments in the view

Help? Any other filtering method using node author? (They searched for a long time, and the “filter by the way” approach seemed good, but I have to skip something).

UPDATE : in the Preview view, the path is viewed garages/spain/joe, but it is not on the page itself http://garagecars.com/garages/spain/joe... which puzzles me more and more.

SOLVED: I inserted the blog programmatically through views_embed_view($viewName, $display_id, $args)... so it worked on viewing, but when the page was rendered, the arguments set programmatically override the one that is in the way, so it doesn't work.

+3
source share
1 answer

Resolved on the same issue. Information on the implementation of this work.

+1
source

All Articles