I thinks this is one of the best module ever in drupal.
I just want to know how can I make more than one dynamic display block with different ddblock themes?

Thanks.

CommentFileSizeAuthor
#4 template.php_.txt5.27 KBdrecute

Comments

ppblaauw’s picture

Category: feature » support
Status: Active » Postponed (maintainer needs more info)

What are you using of the ddblock module?

When you use the basic option you can create a new block.
When you use the advanced options you can create a new ddblock instance and choose another theme layout.

Creating another instance will create another block which you can place in a region or node.

Hope this helps you further, please let me know.

drecute’s picture

Please clarify. What do you mean by "choose another theme layout"?

At the moment, I have advanced ddblock set up, but I want another one on a different page template. But after doing the same thing I did to the first one that made it work, the new one refuse to display any message.

I tried debugging using the drupal_set_message in the template.php file but I got only one debug info messages leaving out the new one i just created.

ppblaauw’s picture

#2

With "choose another theme layout" I mean select one of the other upright themes, other free themes which can be downloaded from http://ddblock.myalbums.biz or a commercial theme which can be purchased at http://themes.myalbums.biz

Do you use the same view and block display of this view for your second slideshow?
Do you place the second slideshow in a region or in a node?
If in a node what code do you use?

Can you send the debug info, your template.php file and a link to your Drupal site?

drecute’s picture

StatusFileSize
new5.27 KB

Thanks Philip for the reply.

I set up a different view and block display for the second slideshow.

I placed the second slideshow in a region.

The debug info is as follows:



    *

      'adfront_copy_item'

    *

      stdClass::__set_state(array(
         'nid' => '11',
         'node_title' => 'Dew of Herman Residence',
         'node_data_field_ddblock_ad_copy_field_ddblock_ad_copy_value' => 'Crestville estate is a privately developed estate with Ikorodu as the perfect choice due to the serene environment she provides. The Three Bedroom Apartment...',
         'node_type' => 'copy_item',
         'node_vid' => '11',
         'node_data_field_ddblock_ad_copy_field_ddblock_front_image_fid' => '7',
         'node_data_field_ddblock_ad_copy_field_ddblock_front_image_list' => '1',
         'node_data_field_ddblock_ad_copy_field_ddblock_front_image_data' => 'a:3:{s:11:"description";s:0:"";s:3:"alt";s:0:"";s:5:"title";s:0:"";}',
         'node_data_field_ddblock_ad_copy_field_ddblock_pager_item_text_value' => 'Dew of Herman Residence',
      ))

You can find the site here: http://dev.pekuliarproperties.com/property/Bungalow/2

I have also attached the template.php file.

Thanks

ppblaauw’s picture

Your preprocess function and the result of the debug lines look ok.

I don't see a ddblock slideshow block at your site, maybe you did not give permissions yet to view ddblock slideshows for anonymous users.

Do you have at least 2 PUBLISHED nodes?

Can you clear the cache at: Administer > Site configuration > Performance

drecute’s picture

The problem I had was that the ddblock aren't showing.

I think I now know what the problem is. The view I created for the website makes use of views arguments. When I removed the arguments, then I was able to see the ddblock. Also, I'm not sure if ddblock provides support for views arguments. I am looking for a way to integrate this anyway.

What do you think Philip?