Display News item slideshow block

To show the News item slideshow block you have several options:

  • A region of your theme.
  • A node.
  • The panels module.

The first two options are described here:

Place the News item slideshow in a region of your theme

  1. Navigate to Administer > Site building > Blocks in the admin menu.
  2. Find the news_items views block News item slideshow in the Disabled section near the bottom of the page.
  3. Select a region (e.g. a region which is big enough for the News item slideshow) in the drop down box next to your block. This will move the block you just created to this region.
  4. Click the Save Blocks button.

Place block in a region

Place the News item slideshow in a Node

Important: It is important to enable the PHP filter module, to allow embedded PHP code/snippets to be evaluated.

  1. Create a node type (e.g page).
  2. Fill in the Title.
  3. In the body of the node fill in the following code.
    $block = module_invoke('views', 'block', 'view','[VIEWS_BLOCK_NAME]');
    print $block['content'];
  4. Change [VIEWS_BLOCK_NAME] to the block name of the view: news_items, so the code becomes:
    $block = module_invoke('views', 'block', 'view','news_items-block_1');
    print $block['content'];

    Note: If you use the default news_items view the code above works fine and you dont need to change the views block name at all.

    You can find the name of the views block when you hover on the configure link in the block administration page.

  5. Choose as input format: PHP code
  6. Save the node

Display block in a node