Next Tutorial

Drupal 7 Tutorial Part 15: Drupal 7 Advanced Taxonomy Concepts

Drupal 7 Tutorial Part 5: Understanding Drupal 7 Block Region Settings

Submitted by anilsagar on Wed, 05/11/2011 - 20:55

Hi Everyone,

 

In this tutorial i want to discuss more about Drupal 7 block settings. In previous tutorial we saw how to create simple Drupal block. In this tutorial we will extend the block we created using different settings in block.

 

  • Login as admin and hover on the block you created you can see a link to configure block, when you click on wheel like icon at top right hand side. Using this link directly we can go to block configuration settings. This link is only visible to administrator or user with proper permissions to manage blocks.

Region Settings:

  • Let's start with Region Settings block as shown in below image.

  • Basically we can enable multiple themes on Drupal. Theme is a template which gives your site more consistent design and look. I will discuss more about themes  in upcoming tutorials. For example, Drupal core comes up with two themes. Namely Bartik theme which is default theme and Seven theme which is used in administration pages. Basically, We can have multiple themes enabled in Drupal site but only one theme is visible for end user and we can set separate theme for administrator.
  • To see these settings in action. Let's configure them. We already selected "Sidebar second" as region for bartik theme in last tutorial. Now let's select "content" for seven theme and click on save button at bottom. Now' let us see how these changes affected our block.
  • When you go to any page other than administrator page our block is visible in "sidebar second " region. For example in Home Page you can see our block in right hand side.
  • If you go to any administrator related page, for example goto any link on top black menu bar let's say Dashboard you can see contact us on top content region. So in bartik theme our block is placed in "sidebar second" region and in seven Administrator theme same block is placed in "Content" region as shown in below image. So basically region settings allows block placed in different regions in different themes.

 

Stay tuned with me to know about block visibility setting in my next tutorial. Feel free to drop a comment below if you have any queries.

 

Cheers,

Anil Sagar

4 comments

These are great, please keep

Submitted by Anonymous (not verified) on Tue, 01/17/2012 - 23:20.

These are great, please keep them coming! You are sponsoring small business around the world with this site, just so you know: most small business owners like myself don't have the money to pay for a website, and this tutorial let's us put something together.
THANK YOU!

hard to design theme in D7

Submitted by Mould Maker (not verified) on Fri, 08/19/2011 - 19:56.

It seems no easy to design the themes for Drupal 7 . In drupal 6 , it is more easy to do it.

wrong theme

Submitted by Nico (not verified) on Thu, 05/19/2011 - 18:37.

When you say,

...Now let's select "content" for bartik theme and click on save button at bottom. Now' let us see how these changes affected our block.

don't you mean "content" for seven theme? Cause Seven is the administrator theme.

Thank you very much

Submitted by anilsagar on Tue, 05/24/2011 - 22:22.

Hi Nico,

Thank you very much for pointing it out. Yes, it's actually seven theme. I updated the article.

Cheers,
Anil Sagar

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image. Ignore spaces and be careful about upper and lower case.
©2010 AnilSagar. All rights reserved. Drupal theme by Kiwi Themes.