Display example slideshow blocks

To show the example slideshow block you have several options:

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

The first two options are described here:

Place an example slideshow block in a region of your theme

  1. Navigate to Administer > Site building > Blocks in the admin menu.
  2. Find one of the: ddblock_if_example_slideshows: uprightxx slideshow blocks in the Disabled section near the bottom of the page.
  3. Select a region in the drop down box next to this 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 ddblock_if_example_slideshows: uprightxx slideshow blocks in a Node

Important: It is important to enable the PHP filter in the module page 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.
    <?php
    $block = module_invoke('views', 'block', 'view','[VIEWS_BLOCK_NAME]');
    print $block['content'];
    ?>
  4. Change [VIEWS_BLOCK_NAME] to the block name of the view: With long block name this will be a hash value (eg: ef50fae2f402df6963bbb6f39927f019, so the code becomes:
    <?php
    $block = module_invoke('views', 'block', 'view','ef50fae2f402df6963bbb6f39927f019');
    print $block['content'];
    ?>

    Note: 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