A block is a box that appears in the sidebar of your theme also known as regions. Depending on your themes regions you may have the ability to include blocks in your right, left, middle or any other configurable region of your theme. Many of the modules like ecommerce, polls come with predefined blocks that you can place in any region of your theme. You can create your own custom blocks with any html editor and place these contents in a block. Each custom block has a title, a description, and a body. The content within the body can be as long as you wish.
Blocks are configured per theme so if your site has multiple themes you can enable and configure blocks for each theme. Blocks can be enabled or disabled by clicking on administer » site building » blocks. From this screen, you will be able to control whether each block is enabled where it will be placed on the page, and which pages it should appear on.
Whether a block appears on a page depends on a number of factors.
- First, the block must be enabled by checking its "Enabled" box on the block management page;
- Second, the block's custom visibility settings must permit the block to be displayed for a given user. You can configure a block to appear always; to be displayed by default unless disabled by individual user preferences, or to be disabled by default but visible if enabled by individual users. Individual users can select or disable optional blocks from their "my account" page;
- Next, the page visibility setting determine the blocks visibility for page
Once you have configured a block to appear as required on specific pages and in the correct column, you may wish to adjust the block's weight to position the block vertically within its column. A block's weight is set via a pull-down selector on the block management page. Heavier blocks (those with a more positive weight) "sink" to the bottom of a column, while lighter blocks "float" towards the top.
Enabled blocks are grouped together in the left and/or right sidebar (s) of your web site. If you find yourself with out a login dialogue box and you are logged out of Drupal, you can use the below URL to login in -
With clean file enabled - http://yourdomainname.com/user/login (discussed in another chapter)
Without clean file - http://yourdomainname.com/?q=user
In this video you will see how to create a custom block and enable this on select page