I am not a tech freek but i followed the Advanced Tutorial.

The 'news' content type (manually created), the view (automatically imported) and the DDBlock Instance seems to have been correctly created.

The 'custom' directory has been copied in the glossyblue theme dir and template.php has been modified.

The DDBlock has been inserted in the Footer section. 2 News have been created.

However, it seems that the function glossyblue_preprocess_ddblock_cycle_block_content(&$vars) is never called (debugging information is never displayed)

Even if i move the 'custom' directory I don't get any errors !

I will really appreciate ANY help

Comments

cpotter’s picture

please find the template.php

cpotter’s picture

Category: support » bug

SOLVED WITH WORKAROUND (BUG R6?) : this happens if you have a second "block view" in view news_items. delete the second block and template.php is called again

ppblaauw’s picture

Status: Active » Postponed (maintainer needs more info)

To make it possible to use more display blocks in a view, you can add in the ddblock.module file:

 'view_display_id' => $display_id,

after line 1561

      'view_name' => $view->name,

and

  $pager_settings['view_display_id'] = $settings['view_display_id'];

after line 1651

$pager_settings['view_name'] = $vars['settings']['view_name'];

This way use can use the display id in the preprocess functions in the tempate.php file of your theme with the following code in the content preprocess function:

if ($vars['settings']['view_name'] == 'news_items' && $vars['settings']['view_display_id'] == 'block_1') {

instead of

if ($vars['settings']['view_name'] == 'news_items') {

and the following code in the pager preprocess function

    if ($vars['pager_settings']['view_name'] == 'news_items' && $vars['pager_settings']['view_display_id'] == 'block_1') {

instead of

    if ($vars['pager_settings']['view_name'] == 'news_items') {

Hope this helps you further, so you can use more display blocks in your view.
Please let me know

ppblaauw’s picture

Status: Postponed (maintainer needs more info) » Fixed

set status to fixed, assume poster solved the issue, 3 weeks without reply.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.