Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I have created a view and I want to show filtered posts passing arguments via the URL. Example:

http://mysite.com/press/2012-01

I want to show all press posts created in January'2012.

How can I do that ?

share|improve this question
1  
Check out Taming the Beast at nodeone.se (dev.nodeone.se/en/taming-the-beast-learn-views-with-nodeone) for an excellent and comprehensive tutorial on all things Views. –  Ashlar Mar 24 '12 at 21:29
1  
FYI, in Drupal we call it argument. arg –  Nikhil M Jun 22 '12 at 3:46
add comment

2 Answers

Take a look at the core Views example Archive (admin/structure/views/view/archive/edit) which is disabled by default.

share|improve this answer
add comment

You need to use Contextual Filters in order to pass arguments to the view.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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