Menu icon
RedCrackle
Menu icon
Services
01Design Transformation
About UsCase StudiesBlogContact Us

<

Blog post

How to create a Block View in Drupal 7

Neerav Mehta

Founder & CEO

There are two kinds of views that can be created – a page view and a block view. A block view behaves like any other view. The only difference is that the content of the block view is rendered in a block. Page View requires a path. The view output will be rendered in a page with the given path.

Let us create a block view for Latest Articles.

  1. Download the "Views" module from http://drupal.org/project/views.

  2. Enable the "Views" and "Views UI" modules.

  3. Navigate to "Structure" -> "Views" -> "Add New View"

  4. Enter a name for the view: "Latest Articles".

  5. Show Content of type "Articles" sorted by newest first. Tick against the check box "Create a Block" and fill necessary information like "Block Title", "Display Format", "Items per page" and "Use a pager".

  6. Click "Save & Exit" to save the view.

  7. You can also click "Continue & edit" if you need to edit the view. Here, you will find advanced settings for the view. You can add more fields, filter criteria, sort criteria, contextual filters and many other settings.

Your block view is created now. Let us place this block into a region.

Steps to place the block in a block region

  1. Navigate to "Structure" -> "Blocks"
  2. You can find your view under the "Disabled" blocks list. It will appear as "View: Latest Articles"
  3. Assign a block region to the block from the drop down available next to the block name.
  4. Save the block.

You will now be able to see your view in the assigned region.

Neerav Mehta

Neerav Mehta

Founder & CEO

Neerav Mehta is the Founder & CEO of Red Crackle. With sterling qualities, Neerav’s technological acumen is firing a generation of progressive companies on the digital path. With an undergraduate degree in Electrical Engineering from India's most prestigious institution IIT Bombay and having spent seven years developing and contributing to the launch of AMD's innovative line of computer products, Neerav founded Red Crackle where he is lauded for his dynamic and innovative genius.

View all posts

>

Read Next

10 Tips For Entrepreneurs In 2015

10 Tips For Entrepreneurs In 2015

Learn more

10 Ways To Increase Productivity At Work

10 Ways To Increase Productivity At Work

Learn more

30 best WordPress widgets for your site

30 best WordPress widgets for your site

Learn more

Let’s get you started!

Contact Us

>

RedCrackle

Explore

About Us

Services

Contact Us

Our address

5346 Gerine Blossom Dr,

San Jose, CA 95123

USA

Socials

Twitter
LinkedIn

© 2023 RedCrackle. All rights reserved.