Display advanced Dynamic display block slideshow

Display advanced Dynamic display block slideshow

To show an advanced Dynamic display block you have several options:

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

The first two options are described here:

Place the advanced Dynamic display block in a region of your theme.

  1. Navigate to Administer > Site building > Blocks in the admin menu.
  2. Find the ddblock-News item slideshow block in the Disabled section near the bottom of the page.
  3. Select a region (e.g. a region which is big enough for an advanced Dynamic display block, the footer) 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 the advanced Dynamic display block in a Node.

  1. Create a node of e.g. type page.
  2. In the body of the node fill in the following code.
    <?php
    $block = module_invoke('ddblock', 'block', 'view','[BLOCK_NUMBER]');
    print $block['content'];
    ?>
  3. Change [BLOCK_NUMBER] to the block number of the advanced Dynamic display block, so the code becomes:
    <?php
    $block = module_invoke('ddblock', 'block', 'view','1');
    print $block['content'];
    ?>

    You can find the number of the block when you hover on the configure link in the block administration page.
  4. Choose as input format: PHP code
  5. Save the node

When you want to give anonymous users and other registered users rights to view the ddblock slideshows configure the permissions to view ddblock slideshows at: administer > user management > permissions.