I know the query I am trying to achieve. But how to start create it in views using drupal 7 alludes me. This is what I am trying to achieve

SELECT * from Articles where Node IS NOT current Node.


You need to use views contextual filters. Add a contextual filter Content:Nid and provide default value as "Content Id from URL" and select Exclude checkbox in the settings. That's it !!

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.