Tutorial: Simple News View With Drupal

DrupalPersonally, one of the most common things that clients have asked me to do for their website is to make a simple news page.  Here’s a simple tutorial how to make that in Drupal.

Before we begin, you will need to have Drupal 6.x installed and configured. Also, you will need the following modules: CCK, Views.

1. Login as administrator.

2. Go to admin/content/types and click on “Add content type“.

3. Type this in the fields:

Name: "News"
Type: "news"
Description: "News items"

4. Click “Save content type”

5. Go to admin/build/views and click “Add”.

6.  Type this in the fields:

View name: "news"
View Description: "News View"
View type: Node

7. Click “Next”

8. In the Filters-section, click on the plus-sign

9. Check “Node: Type” and click “Add”

10. Choose “Is one of” and “News”. Click “Update”

11. In the Sort Criteria-section, click on the plus-sign

12. Check “Node: Post Date” and “Descending” and click “Add”

13.  Check that Sort order is on “Ascending” and Granularity “Second”, then click “Update”

14. In the Fields-section, click on the plus-sign

15. Check “Node: Title” and “Node: Post Date” and click “Add”

16. Leave “Node: Post Date” as it is and click “Update”

17. For “Node: Title”, clear the Label-field and check “Link this field to its node”, then click “Update”

18. In “Basic Settings”-section, click on “None” after “Title:”

19. Type in “Latest news” and press “Update”

20. Next, we are going to make a page for the news. Above “Add Display“, choose “Page” and click “Add Display”

Newspaper

21. In “Basic Settings”-section, click on “No” after “Display pager:”

22. Choose “Mini pager”, click “Override” and then “Update”

23. In “Page Settings“-section, click on “None” after “Path”

24. Type in “news” and click “Update”

25. In “Page Settings“-section, click on “No menu” after “Menu:”

26. Choose “Normal menu entry” and type in this:

Title: "News"
Menu: "Primary Links"

27. Click “Update”

28. Click “Save”

29. The system is ready. Now we just need to make a test news item. Go to node/add and click “News”

30. Type in the Title and Body for your news item

And you are done! The News-page should be in your main menu and also can be found at www.yoursite.com/news.

Posted in Web Development

Written by

Enjoy this Post?

Remember to subscribe to our RSS Feed and if you would like, please share this post.

8 Comments

  1. John says:

    Thanks for this guide.

    It works OK except for also stripping all non text out of the body such as images etc. We need all body content to appear but I can’t see where to change this. Any ideas?

    John

  2. Hi,
    We can also use news modules for Drupal.This module allow as to create new news , manage them at the back end.This tutorial says about the default search module that is present in the Drupal.But this additional module will be more efficient in creating and publishing the news.

  3. Benko says:

    This was a fantastic tutorial – Followed it step by step and came out perfectly. Thanks!

  4. ddrupal says:

    [...] Tutorial: Simple news view with drupal from http://www.webdo.me [...]

  5. I have been browsing online more than three hours these days, but I never discovered any fascinating article like yours. It?s beautiful value sufficient for me. In my opinion, if all website owners and bloggers made excellent content as you probably did, the net shall be a lot more helpful than ever before.

  6. Arun says:

    how to create this simple news on Drupal 7.x

  7. mitch says:

    It seems like your blog post a perfect step by step tutorial, more efficient, I tried and then it works perfectly by following the steps in tutorial. But one thing I can’t see the whole content to appear.

    montreal web design company

  8. [...] Using Views 2 in Drupal 6 to replace the Tracker module from davidherron.com Tutorial: Simple news view with drupal from www.webdo.me Create administration pages with Views 2 from zugec.com How to create a [...]

Leave a Reply