admin's blog

Embedding Block content in a node $content

To display a block-content in a page node, the following code is used


<?php
$block = module_invoke('block', 'block', 'view', 26);
print $block['content'];
?>

for example, to display a webform block:

<?php
$block = module_invoke('webformblock', 'block', 'view', 19);
print $block['content'];
?>

Retrieve the id.num from the "edit block"
admin/build/block and click or hover over the configure link

The url will be in the form:
admin/build/block/configure/webformblock/19

from api.drupal.com:

Expanding Ubercart categories to show the products

I've recently put up an Ubercart application, and wanted the Categories in the block to expand showing the products below them. The products were all showing in the grid in the main section, but not in the block.

I've found a work-around on the Ubercart site:

http://www.ubercart.org/forum/support/4971/navigation_question

With a bit of tweaking, the categories are now showing with the products, as well as if you're viewing a product.

Firefox running slowly in Linux.

In my move away from Windows, one of the last bits holding on is the speed of Firefox under Linux (both Fedora and Ubuntu)

There is a possible solution I'll be trying tonight when I get home.

http://forums.fedoraforum.org/showthread.php?t=209564#postmenu_1142757

Primarily it seems the delays are caused by the excessive DNS searches introduced by Belkin.