O'Reilly logo

Drupal 6 Site Blueprints by Timi Ogunjobi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The latest news block

In order to create this block, just follow the same procedure we have been following, but with a few changes:

  • a. Select Block in the default setting
  • b. In Basic settings, give the block a Title such as latest news
  • c. In Items to display, change the value to 3
  • d. In Fields, select Node: Title and Node: Teaser
  • e. In Sort criteria, select Node: Published, and choose descending order
  • f. In Filters, select Node: Type is one of News

Save this, and you are done. If you now go to the Blocks page, then you will see that a new block has been created called latestnews: Block. When put in use, this block will display the titles and teasers of the last three articles posted for the News Content type, in a block.

Tip

Tips and traps

In this example, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required