This tutorial will show you how to take a block and place it inside a Drupal node.
Often this is done through one of two methods:
- With modules such as Panels or Context which allows you to easily place blocks and many other Drupal items inside nodes.
- With PHP code snippets.
However, sometimes Panels and PHP are too complex and you need a quicker and easier solution. Enter the "Insert Block" module. Here's how to use it:
Install and Configure Insert Block
Go to http://drupal.org/project/insert_block and download the Insert Block module. Upload it to your site and enable it.
Go to Site configuration >> Input formats and click on Configure next to the input format that you're using.
Scroll to the bottom of the page and check the box next to "insert block filter". This will allow you to use the Insert Block feature with this particular input format.
Get the Block Information
Go to Site building >> Blocks. We're going to get the information we need to insert each module.
Click on "configure" next to the module you want to insert in a node.
Look at the URL of the page. You need to note the last two parts of the URL. In the case above for the "Navigation" block, it's /user/1/
For the "Who's online" block below it's /user/3/ and for the "Primary links" block it's /menu/primary-links/
Place Blocks in Your Node
Open up the node that you want to put blocks into and use this syntax:
[block:user=1] (this will place the Navigation block)
[block:user=3] (this will place the Who's online block)
[block:menu=primary-links] (this will place the Primary links block)
Save the node and your blocks should appear inside the content as they do above.