Frequently Asked Questions - Advanced Dynamic display block trouble shooting


When I click on a pager-item it goes to the top of the page and not to the slide. Why?

You have to change your pager container setting to the pager-container that is used in the pager template file. For the custom pager in the example templates .custom-pager-item is used. Don't forget the dot in front of custom-pager-item.

When I click on a pager item, the slide-effect is not used, Why?

The ddblock module standard uses no transition effect, so users can quickly change the slides without having to wait on the transition.

You can use {"fastOnEvent": 0} to use the transition effect, even if a user clicks a pager item to select a slide.

Simply paste {"fastOnEvent": 0} into the "Custom jQuery Cycle Plugin Settings" box in the configuration for your block ("Configure Block" link at /admin/settings/ddblock/list).

When I click on the read more button it doesn't go to the node itself but it just goes to the next slide. Why?

If you want to enable users to go to the nodeview of a slide with e.g. a read more... button, you have to disable the next setting in the configuration settings.

I can not sort my content by view sort order. What to do?

There is a patch available so you can choose none for the order in the dynamic display block configuration page. If you choose none, the order in the slideshow will be as defined in the view.

Text slide disappears if I click pager twice. What to do?

Not using the jQuery effects for the slidetext will solve this problem.

Not using the jquery effects for the slidetext can be accomplished by:

Setting the "Slide text container" field in the "Slide text settings" block of the configuration page of the ddblock slideshow block you use to e.g.:

div.slide-text1

instead of

div.slide-text

The slidetext always stays in the front this way.

warning: Invalid argument supplied for foreach() in... solution?

If the warning: Invalid argument supplied for foreach() in /drupal/sites/all/themes/[THEME-NAME]/custom/modules/ddblock/ddblock-cycle-block-content-upright10.tpl.php on line 43. error occurs the view_fields in the template file are not recognized.
First, try to clean the cache at admin >> site configuration >> performance.
If this doesn't work, check the following:

  • Did you already create at least two nodes (and published them) of the content type you use for the dynamic display block module?
  • Did you place the preprocess function in the template.php file of the theme you use?
  • Did you change [theme_name] in the preprocess functions for the ddblock module in your template.php file to the name of the theme you use?note: The theme_name is case sensitive and must be exactly the same as the name of the theme you use
  • Is your view_name you use the same as the view_name in the if statement in the preprocess functions in your template.php file in the theme you use?
    note: The view_name is case sensitive and must be exactly the same as the name of the view you use
    This can be checked by uncommenting the debug line in both preprocess functions in your template.php file.

When you don't see the result of the debug lines have a look at the faq question: When I uncomment the drupal_set_message debug lines I don't see the result.

If none if the above solves your issue please create an issue in the Issue queue on Drupal.org. Attach your template.php file and the results of the drupal_set_message debug lines when you uncomment them in the proprocess functions. Also give a link to your Internet site if possible or a screenshot.

When I uncomment the drupal_set_message debug lines I don't see the result.

When you uncomment the drupal_set_message debug lines in the preprocess function for the ddblock module in your template.php file and don't see a result when reloading the page with the ddblock slideshow.

  • First, try to clean the cache at admin >> site configuration >> performance and reload your page again.
    If this doesn't work, check the following:
  • Did you change [theme_name] in the preprocess functions for the ddblock module in your template.php file to the name of the theme you use?
  • Did you set Display method to: "Cycleblock"
  • Did you check the: Use advanced settings checkbox

note:

  1. The theme_name in the preprocess function is case sensitive and must be exactly the same as the name of the theme you use.
  2. Your theme name must NOT contain dashes or spaces or start with a number. Dashes (-) and spaces can not be used in PHP function names. A PHP function can also not start with a number.

    When your themename contains dashes, spaces or starts with a number change the name of the .info file of your theme in a name without spaces and dashes and edit the .info file to set the name variable in the theme.info file.

If none if the above solves your issue please create an issue in the Issue queue on Drupal.org. Also give a link to your Internet site if possible or a screenshot.

Images not showing, only grey box.

Reasons this can happen are:

  1. You only use one slide for the slideshow. You need to add at least two nodes for the slideshow.
  2. You have enabled the content permissions submodule of CCK and did not give permissions for the image field.
  3. You have the image field in the view, but you checked the Group multiple values checkbox and don't see a variable ..._fid for the image in the SQL statement of the preview of the view. The Group multiple values checkbox needs to be unchecked. Now you can also see the image field variable ending on _fid in the view preview SQL statment and in the result of the drupal_set_messages when you uncomment them in the preprocess functions.
  4. You use the same image-field, used in the ddblock slideshow, which causes a name change generated by CCK
  5. The view name or field names in the preprocess functions in template.php is not correct. You can solve this by the following:

How are fieldnames generated with CCK?
Names of cck fields are build up as follows:

  • node_data
  • underscore (_)
  • name of the CCK field with the lowest weight (first appearance) (e.g. field_pager_item_text)
  • underscore (_)
  • name of the current field. (e.g. field_image_fid)

with the example fieldnames above the fieldname would become

node_data_field_pager_item_text_field_image_fid

How to determine the field names generated by CCK?
To find out the field names generated by cck/views you can uncomment the drupal_set_message lines at the top of the content preprocess function. This will show the viewname you use and the fieldnames generated by cck/views.

What to change
You need to change the imagefield (4 x) in the preprocess functions.
2 times in the content preprocess function
and 2 times in the pager preprocess function.

find ..._fid
and change to
the field name you find in the result of the drupal set message debug lines, which ends on _fid.

In many cases, to show the images in the ddblock slideshow, the following has to be changed:

node_data_field_image_field_image_fid
to
node_data_field_pager_item_text_field_image_fid

Issue example
Have a look at this issue No Images Displayed, and IE Gray Box for an example.

What if the results of the debug lines don't show up?
When the results of the debug line don't show up you probably have not replaced [***THEME_NAME***] in the name of the preprocess function to the correct name of the theme you use.

Create an issue
If this does not help, please make an issue at: http://drupal.org/project/issues/ddblock and send a copy of your template.php file the result of the drupal_set_message debug lines and a link to your Internet site.

What can I do when the theme I am using doesn't have a template.php file?

You can make your own template.php file. Download the Dynamic display block export files and preprocess functions at the Download page. Copy the preprocess function from the package export files name template.php.txt and paste it to the template.php file you just made. Place the template.php file under your theme directory. E.g sites/all/themes/[theme_name] folder.