I need to alter the result of the view based on contextual filtering in views. When I add any contextual filters, the results disappear on the node detail page. They're showing correctly on the preview window in views though. I have marked this as a feature request, but I may be a bug if filtering should already work.

Comments

floleft’s picture

Anyone else have a views filter with contextual filters working for user reference?

floleft’s picture

Category: feature » bug

Marking as a possible bug based on another issue someone else posted about arguments.

steinmb’s picture

Not able to get this to work either. Anyone know if it is supposed to?

floleft’s picture

I tried my view again with the latest version and it's working as far as I can tell. I'll test more and post if it's not.

steinmb’s picture

OK. I'll move on then, try and isolate the problem in my dev. env.
Thanx! :)

geerlingguy’s picture

I'm having a strange problem - in the Views preview (a view with which I use a contextual argument and a relationship to build my list of referenceable nodes), I get a list of all the nodes I want (say, 6 nodes). When I edit a node with a node reference field that is trying to use that view, I only get the last node in the list returned by views as an option.

I have verified this by changing the order of the nodes to be displayed in the view; the last node displayed in the view is *always* the only option in the node reference list.

[Update: Well, I changed the view's contextual argument to use a relationship I had in my view, and set the field and filter to not use the relationship, and now it's working. If you have a complex view with a few relationships and a contextual filter or two, you might want to play with them some more.]

yched’s picture

Status: Active » Closed (works as designed)

Is there anuthing left to fix here ?
Please reopen if yes (with a detailed description of the bug and steps to reproduce). Closing for now,