Drupal Exercise 3

This exercise will go over adding views to your site

Drupal Exercise: Menus

Setup the Module

  1. If you have not installed the Chaos Tools and Views modules, go to http://drupal.org/files/projects/ctools and https://drupal.org/project/views, copy the links and install the modules.
  2. Click Structures and then Views
  3. Click Add New View. This is the first of the two main Views screens. This screen is for creating views. There’s also another screen for editing views that you see later.

Adjust the general view settings

  1. Set the following fields
    • View name: New Articles
    • Check the box for Description and type: A block for the site Articles.
    • Select Articles for the Type.
    • Select Sorted By Newest first.
  2. Uncheck the Create a Page box,
  3. Check Create a Block.
    • Select HTML list from Display format.
    • Change the items per page from 5 to 10.
    • Check Use a Pager
  4. Click Save & Exit.

Enable New Articles Block

  1. Click Structures and then Blocks..
  2. Locate the block you just created. Look under the Disabled list for View: New Articles. .
  3. Click Configure for This Block.
  4. Place the block into an appropriate region.
  5. Set the block to show on articles. This will show the block on the articles landing page(to be created) and all the article nodes
  6. Click Save Block.

The Articles Landing Page

  • Click Structures and then Views.
  • Click Add New View.
    • View name: Articles.
    • Check the box for Description and type: the articles landing page
    • Select Article from the type.
    • Observe the default settings that you will be using.
    • Set the Path to articles .
    • Check the box to Create a Menu Link.
    • Select Main menu from the Menu drop-down.
  • Vote: 

    Average: 2 (1 vote)