How to create a basic dynamic display block image slideshow with images from a folder created as node attachments

Description:

In this option, one node is created for the slideshow with images as attachments. (using core upload module)
The uploadpath module is used to set a specific path where images of nodes are placed e.g. the path will become ddblock/nid-[nid]/images where node Id is automatically replace by the node_id of the created node.
The ddblock slideshow block will be configured to get the images from this path.
For each slideshow a new ddblock needs to be created to place the path. e.g. ddblock/node-116/images in the folder setting. (the token [nid] can not be used here.)
This solution is useful for one or a few slideshows on your site

If you want a solution where each image in the node is show in the slideshow in that node for a lot of nodes, like a gallery then another solutions like: How to create an Advanced slideshow with multiple imagefield images in a node is more useful. This option can use dynamic arguments and only one ddblock block needs to be made for all slideshows.

Links refer to the existing tutorial on this site.

Installation:

Follow the detailed Installation instruction on how to install the required modules to create a basic dynamic display block image slideshow with images from a folder.

Addition module installations

This solution depends on the upload path module which requires the token module and the core upload module. So we have to install and enable them first.

  1. Go to http://drupal.org/project/token and download the token module.
  2. Go to http://drupal.org/project/uploadpath and download the upload path module.
  3. Extract the token folder and the upload path folder and drop them into the /sites/all/modules/ folder.
  4. Navigate to Administer > Site building > Modules and enable the core upload module, the token module and the upload path module by selecting the check boxes next to "upload" in the Core group and "Token" and "Upload path" in the Other group.
  5. Click the save configuration button.

Create a specific content type
It is preferred to create a specific content type for the nodes which are used for the ddblock image slideshows.

Create ddblock node gallery content type

Path to Content types page:

  1. Navigate to Administer > Content management > Content types in the admin menu.

Detailed instruction on how to add a DDblock node gallery content type:

  1. Click the Add content type tab.
  2. Fill in the following form fields.
    • Name - ddblock node gallery
    • Type - ddblock_node_gallery
    • Description - Node gallery with attached images to display with the dynamic display block module.
  3. Click the Save content type button.

Create upload path for the ddblock node gallery content type

Path to File upload paths

  1. Navigate to Administer > Site configuration > File upload paths in the admin menu.

Detailed instruction on how to add upload path for the ddblock node gallery content type:

  1. Goto Patterns for each node type
  2. Type the path pattern: ddblock/nid-[nid]/images At Path pattern for ddblock node gallery
  3. Click Save configuration

Create a ddblock node gallery node

Path to create a ddblock node gallery node

  1. Navigate to Administer > Create content > ddblock node gallery

create node:

  1. Fill in Title - Gallery 1 or a more descriptive name
  2. Attach images - Image used for slides.
  3. Click Save button.

Notes:

  • You need to attach at least two images for a slideshow to work
  • The upload path module will now create the folders: ddblock/nid-[nid]/images in the drupal file path.
  • Remember the node id for creating a dynamic display block

Create a dynamic display block

Path to configuration page.

  1. Navigate to Administer > Site configuration > Dynamic display block in the admin menu.

Add, configure and enable a dynamic display block.

  1. Type a unique block title in the block title field of the Add dynamic display block fieldset at the bottom of the screen. e.g. images from node-[nid] ([nid] is the node id you created.) or a more descriptive name regarding the kind of images
  2. Click the Add block button.
  3. Click the Configure block link in the "Dynamic display block" fieldset of the dynamic display block you just made.
  4. Set the image folder to ddblock/nid-[nid]/images ([nid] is the node id you created.)
  5. Click Save Block at the bottom of the page.
  6. Images form the folder ddblock/nid-[nid]/images will now be used in this dynamic display block slideshow
  7. Navigate to Administer > Site Building > Blocks in the admin menu.
  8. Find your block in the Disabled section near the bottom of the page. Select a region (e.g. Right sidebar) in the drop down box next to your block. This will move the block you just created to this region.
  9. Click the Save Blocks button.

    After these steps you should see your added dynamic display block.
    You can always adjust the settings at Administer > Site Configuration > Dynamic display block in the admin menu.

    If you are not successful see: Images from an image folder are not displayed. in the FAQ for troubleshooting.

Comments

Please update this for Drupal 7

It would be helpful is this procedure was updated to reflect the changes made in Drupal 7.

What is the benefit of drupal 7

Whant is the benefit of drupal 7 than older