Hi all,
Just having a ball here with Drupal 6!
I have created, among other types, a new content type known as "Article". For my users I have created a menu called "Create an Article" which leads them to the article submission form. So far so good. But after that I'd like to have a facility whereby that particular user or ANY user (including me, the Admin) to be able to click on a menu link called "Articles" or "Recent Articles" or simply "Articles List" and go to a page where they can see a list of all the articles posted by all users. (I would then like to make this menu item part of the Primary Links - this I am sure I can handle, once I know the path to the list of all the articles). How can I do this? I have tried tinkering with the Drupal paths etc. but have not been able to come up with a solution.
Thanks!
Kenny
Comments
This looks like a job for the Views module!
Views was created to handle just this type of thing. Get the Views module, install it go to Administer -> Views and click the "Add" tab. Don't be intimidated by the UI -- you'll be done in a flash. Give the view a name and description. Expand the "page" section and check the "Provide page view" link. Enter a URL for the view. For the view type, choose "list". Expand the "fields" section. From the dropdown, select "Node: Title" and click the "add field" button. Expand the "filters" section. From the dropdown, select "Node: Type" and click the "add filter" button. When the page reloads, you'll have options for the newly added filter. Choose "Is one of" and "Article" Now click "Save" at the very bottom of the form. Once back to the main Views page, find your new view in the list and click on the link in the URL column to see the view.
So by now, I'm sure you have a ton of other thing you want to try out with views. One suggestion I will make: You should always use the Node: Published Equals Yes filter to ensure that unpublished content does not get shown in views. Have fun!
Thanks!
Thanks for pointing me in the right direction! I had "bumped into" Views before but your comment actually made me try it out! I must admit that it's not the best interface (sorry! have been spoiled by the Macintosh UI for years!) but its beauty lies in its power! When I first looked at it, I had absolutely no clue what I was looking at! I had to learn it by trial and error. The fact that I am running v6 of Drupal and the current Views module is not exactly up to date with it only added to the challenge! But it's been pretty much fun playing around with it!
Thanks again!
Kenny
Glad I could help
Views is one of Drupal's most powerful tools and merlinofchaos deserves a ton of credit for providing the community this module.