It would be useful to have negative arguments.

Imagine you are looking at the blog list of a user eg. blog/3

Then perhaps what you would like in a block is a list of only OTHER users' blog postings (as you already have the post of the user in the main content area.)

This could be done with an argument like: UID is NOT Author.

Fetching nodes not authored by user 3.

Comments

sun’s picture

Category: feature » support
Status: Active » Fixed

You can do such custom filters by implementing a custom PHP argument handler.

Sorry, unfortunately this support request is way too specific. Please have a look at the issue queue - Views maintainers are buried already. You might want to try to get further support at http://drupal.org/support. Additionally, the answer to your question might be covered in the handbooks at http://drupal.org/handbook/modules/views already.
If you were able to solve this issue on your own in the meantime, you might want to add the involved steps to this closed issue, so other users searching for a similar solution might find it.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

aren cambre’s picture

Status: Fixed » Active

[canceling this comment--will post correction]

aren cambre’s picture

Version: 5.x-1.6 » 6.x-2.5
Category: support » feature
Status: Closed (fixed) » Fixed

Looks like this is now supported with the "Exclude this argument" checkbox.

Status: Active » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

crusher82’s picture

Hello everybody,

I have a problem about negative arguments. I try to explain my problem.

I have an user id argument : 44.
I have two contents, the first one contains 18 and 44, the second one only 18.

I'd like that my view return the content which doesn't contain 44(the second one). I've already tried avec "Exclude this argument" but this solution doesn't work (the system returns the two contents because in the first content, there's not only 44).

Have you any ideas ?

Thanks for your help.