Nodeblock: Use nodes as blocks

How to use Nodeblock:

  1. Install the Nodeblock module the usual way at admin/build/modules.(D6) and /admin/modules. (D7)
  2. Edit the content type that you wish to use as a block. In most situations you would create a simple content type named Block to use as your custom blocks, but you shouldn't feel limited to just this usage. Any type of node, using any type of field may be used as a nodeblock.
  3. Select the Enabled radio button on the Available as block field.
  4. Create block nodes and watch them populate your block list!

Using settings to change display for specific blocks on their block configuration pages:

  1. You can get rid of node links like comment, edit, etc. by unchecking that box under "Block specific settings"
  2. You can remove the title by placing <none> in the title box

Using settings to change display for all blocks of a certain node type :

  1. To remove post information, the "submitted by" field, uncheck the box for that node type under "display post information on:" at admin/build/themes/settings

How to theme your node blocks:

Restricting blocks to certain pages

Below the Page Specific Visibility Options options, you will see a large text box. On each line, you can specify which pages that block will appear on -- or not appear on, depending on what you selected above.

The following are some annotated examples. They all assume that you choose the second option above; if you chose the first option, blocks will appear on all pages other than what you specify below. You're welcome to add more than one listing, each separated by lines. (Note that you cannot specify pages on which blocks appear as well as pages on which blocks do not appear. It is either one or the other.)

<front>
Specifies that the block appears on the front page.
node/42
Specifies that the block will appear on the item with the node ID of 42.
aggregator
Specifies that the block appears on just the aggregator.
blog/*
Specifies that all URLs that start with blog/ will show the block. Note: if you want the block(s) to also appear on the main blog page, you need to add blog (that is, without the trailing slash) as well.

Some users have reported they receive the error "warning: Delimiter must not be alphanumeric or backslash in [your drupal install] modules/block.module on line 354." if they do not surround their paths in <> like <node/42>

Pages

Subscribe with RSS Subscribe to RSS - block