- Getting Started
- Basic Configuration
- Creating Multiple Sites On Your Local Computer
- Error Pages
- Accessing Your Test Site(s)
- Adding Modules and Themes
- Creating Content
- Custom Blocks
- Working with the Menu
- The Contact Form
- URL Aliases
- Moving Entire Drupal Site with Databases
- Moving Stuff to Your Web Site
- Setting Up Cron
- Additional Tips and Tricks
- Categories (Taxonomy)
- Common Problems
- Links and IMG
- Keeping Your Local and Remote Sites Synchronized
- More Reading
- Glossary
Custom Blocks
Submitted on Thu, 02/08/2007 - 18:38.
I'm not going to say a lot about custom blocks. But I will show you some really simple ones to give you a flavor. There's a lot I still don't know about custom blocks, and that fills many posts on the DrupalDrupal
An open-source content management system that is used on this site and is taking over the world. web siteA logically grouped set of content - also web site.. One good starting point is: Blocks.
Address
A business or support group should always let people know how to contact them. One easy thing is to include your mailing address on your pages. This is about the easiest kind of block to start with.
- Go to
Administer>>Site building>>Blocks. I should already be sitting on your default themeFor web sites, this refers to the "look and feel" of the site. It is also used to describe the code to produce that look., but if not, select the right one. - Click on the "Add block" tab.
- Fill in the "Description" and "Body." Here's a sample body:
- Save the block.
- For some strange reason, you now need to "Configure" the block to add the block's name and placement.
- Add the name.
- Determine whether users can turn to block on or off. Then which roles can see it; leave this with no selections to allow everyone to see it. Then choose which pages it will be shown on; I show the address on all pages.
- Save the block.
- Now you're back on the block list. Locate the block you just created. Select its location; I like the address in the left sidebar. You can use the "Weight" parameter to set its position with in the selected area; again, I like the address at the bottom, so I use a heavier weight.
- Click on the "Save blocks" button.
My company name<br>123 Main St.<br>Mytown, State Zip<br>USA<br>(123) 456-7890
That wasn't so bad was it?
Last Updated
It is fairly common practice, especially on a group siteA logically grouped set of content - also web site. to let the visitors know when the siteA logically grouped set of content - also web site. was last updated. This example requires you, the webmaster or administrator (sometimes called the "super user") to maintain the block. There are ways to automate it, but I leave that until we are all farther along in our DrupalDrupal
An open-source content management system that is used on this site and is taking over the world. education.
- I followed pretty much the same process for the address block, giving this one a slightly heavier weight to sink it to the bottom.
- The main difference is that I wanted it only on the home (front) page. So under "Page specific visibility settings," I clicked on the "Show only on the listed pages" radio button, and entered
<front>in the pages box.
<address>Feb. 12, 2007 - NEW</address><br>
<small>Best viewed in a full window with Internet Explorer 5.5 or higher. Tested with IE6, Netscape 8, and Firefox 2.</small>Okay, now you're an "expert" on blocks.



Recent comments
1 week 4 days ago
6 weeks 3 days ago
6 weeks 3 days ago
7 weeks 2 days ago
7 weeks 3 days ago
8 weeks 4 days ago
8 weeks 5 days ago
9 weeks 1 day ago
9 weeks 3 days ago
9 weeks 3 days ago