Language
  • English
  • Français
Drupal custom theming or module development price estimate calculator

PHP

Advanced Book Blocks module with Jquery menu integration released today

Well it took me about 5 days to get it all together and test it, but finally the Advanced Book Block Module is finished!

This module went much more quickly than the Advanced Taxonomy Blocks module due to the fact that I had already worked out the kinks in the JQuery Menu Api by the time I started. Also I lost less time on stupid bugs since I knew what to expect.

Advanced Taxonomy Blocks module for Drupal 6 released today!

After spending the last week and a half coding like a mad man and testing the thing to make sure there were no glaring bugs I am finally releasing the Advanced Taxonomy Blocks module. This module took a lot more time and effort than I had expected due to the fact that the Drupal api doesn’t provide a taxonomy tree array that gives all of the necessary information in order to integrate with the JQuery menu module and also due to the fact that I had to rewrite a couple of functions in the JQuery menu module in order to get it to open up for other modules to use.

11 Responses | READ MORE

How to programmatically insert a view into a tpl or content in Drupal 6

In Drupal 6 views has been completely rewritten from the ground up, and as such we have to adjust the little code snippets that we developers have collected over the years to compensate.

The old way ( Drupal 5 views 1 ) of inserting a view into a tpl or into a php enabled content area was as follows:

<?php
$view_name = 'text_listing'; //name of view
$view_args = array($oldstring) ;
$view = views_get_view($view_name);
print views_build_view('embed', $view, $view_args, $view->use_pager, $view->nodes_per_page);
?>

This has now changed to the following:

<?php
  $view_args = array();
  $display_id = 'page_1';
  $view = views_get_view('logo_slideshow');
       if (!empty($view)) {
        print $view->execute_display($display_id , $view_args);
  }
?>

Ask a question related to Drupal development or administration