Example 2: Nodes and Blocks

This example puts the 'featured' recipe at the top of the page, the most recent 3 recipes as teasers on the left, and the recipe blocks I can come up with on the right.

View the Example

TOP:

$nid=77;
print dashboard_get_node($nid, true, false, true);

LEFT:

$result = db_query("select nid from {node} n where type='recipe' and status=1 ORDER by created DESC limit 3");

while ($node = db_fetch_object($result)) {
print dashboard_get_node($node->nid, true);
}

RIGHT:

print dashboard_get_block('recipe', 0);
print dashboard_get_block('taxonomy_dhtml', '2');