Path to dynamic display block settings page
- Navigate to Administer > Site configuration > Dynamic display block in the admin menu.
- Click the Configure block link for a specific block.
Information:
A dynamic display block can get content from an image folder or from a content type. The third option, from a block from another module, is described in Settings tab and Instances tab.
Note:All settings have default values. You only have to change the settings if you want other settings.
By default content is used from the image folder sites/default/files.
Please copy your images to this folder.
Input type
- Choose the input type for the dynamic display block.
Content from an image folder
- Type the name of the image folder in the "image folder" field.
- Copy images to this folder.
- Set the Number of images to show.
Content container
- Type a content container to show in the dynamic display block.
- If content to show in the dynamic display block is not directly the child content of your node. (E.g. when images are placed in a <div class="images">). The content container should be: 'img' (without the quotes) to let the images cycle in your dynamic display block. Example:
<div class="images"> <img src="image1.png" /> <img src="image2.png" /> </div>
- If you want to show more content. For example images with text in your dynamic display block you can for example use the <div class="cycle-content"> tag to separate the content in the node. In this case the content container should be 'div.cycle-content' (without the quotes) to let the images with text cycle in your dynamic display block. Example:
<div class="content"> <div class="cycle-content"> Example text 1 <img src="image1.png" /> </div> <div class="cycle-content"> Example text 2 <img src="image2.png" /> </div> </div>
You can use any jQuery selector to select the elements to cycle.
- If content to show in the dynamic display block is not directly the child content of your node. (E.g. when images are placed in a <div class="images">). The content container should be: 'img' (without the quotes) to let the images cycle in your dynamic display block. Example:
- Set the height and width of the container.
- Set the height and width of the image if you have images in your content.
Image settings
- Set the height and width of the image if you have images in your content.
Imagecache preset settings
Information: For more information how the imagecache module works, see the imagecache module tutorial.
When you check the Use imagecache presets checkbox, you can use defined imagecache presets for the images you want to use in a slideshow.
Comments
Isn't it 'dynamic' if I go by content type?
I tried to display random images for content type 'image'. As we need to specify the node while going by content type, I guess it works like a static block in that case. Any workaround? Am I doing something wrong?
Re: Isn't it 'dynamic' if I go by content type?
If you use a content type as input for the dynamic display block you can choose only one node at this moment if you use only the dynamic display block module.
In this node you can define more images (with full HTML filter) like
<div class="images">
<img src="image1.png" />
<img src="image2.png" />
</div>
as content container you set img because this is the css selector you want to cycle
if you want e.g. an image with a text below you would make HTML like:
<div class="content">
<div class="cycle-content">
<img src="image1.png" />
Example text 1</div>
<div class="cycle-content">
<img src="image2.png" />
Example text 2
</div>
</div>
as content container you set div.cycle-content because this is the css selector you want to cycle.
These examples show you using one node and only the ddblock module used to get dynamic content.
Other ways to get dynamic content is e.g. use the headerimage module to get more content nodes depending on content type or taxonomy term etc.
Or you can use CCK and Views to get the content.
In these cases you have to enable the block made by the headerimage module or views in the settings tab of the ddblock module and make an instance in the instance tab of the ddblock module.
You can then set the effect settings for this block instance.
Hope this gives you more info how to get content for the ddblock module to show dynamically like a slideshow.