rendered paste body<p>The Drupal handbooks offer a reference for those interested in Drupal whether novice or experienced, users or developers. Source code documentation can be found on <a href="http://api.drupal.org/">api.drupal.org</a>. All content is supplied by volunteers, please <a href="/node/23743">contribute where you see a need</a>.</p>
<p>A PDF for Getting Started with Drupal 5 can be found at <a href="http://drupal.org/getting-started">http://drupal.org/getting-started</a>. If that's not enough to get you started, then check out the community contributed <a href="http://drupal.org/handbook/customization/tutorials">tutorials</a>, <a href="http://drupal.org/handbook/customization/howto">how to</a> and <a href="http://drupal.org/handbook/customization/videocasts">videos</a> in the <a href="http://drupal.org/handbook/customization">Customization book</a>.</p>
<div class="column-left">
<h2><a href="http://drupal.org/getting-started">Getting Started</a></h2>
<ul>
<li><a href="http://drupal.org/getting-started/project-features">Projects and Features</a></li>
<li><a href="http://drupal.org/getting-started/before">Before You Start</a></li>
<li><a href="http://drupal.org/getting-started/5">Drupal 5</a></li>
<li><a href="http://drupal.org/getting-started/4.x">Drupal 4.7 and earlier</a></li>
<li><a href="http://drupal.org/handbook/modules">Core Modules</a></li>
<li><a href="http://drupal.org/Troubleshooting-FAQ">Troubleshooting FAQ</a></li>
</ul>
</div>
<div class="column-right">
<h2><a href="http://drupal.org/about">About Drupal</a></h2>
<ul>
<li><a href="http://drupal.org/node/35172">Welcome</a></li>
<li><a href="http://drupal.org/about/drupal.org-FAQ">Drupal.org FAQ</a></li>
<li><a href="http://drupal.org/handbook/is-drupal-right-for-you">Is Drupal right for you?</a></li>
<li><a href="http://drupal.org/books">Books about Drupal</a></li>
<li><a href="http://drupal.org/node/22964">Support and professional services</a></li>
<li><a href="http://drupal.org/donate">Donating to the project</a></li>
<li><a href="http://drupal.org/mailing-lists">Mailing lists</a></li>
<li><a href="http://drupal.org/node/9067">Marketing Resources</a></li>
</ul>
</div>
<?php
// Book nids and their titles
$books = array(257 => "Customization - Tutorials, Snippets and HowTo", 509 => "Theme Developers' Guide", 316 => "Developing for Drupal");
foreach ($books as $nid => $title) {
print '<h2 style="clear: left;">'. l($title, 'node/'. $nid) .'</h2>';
// Fetch first level children
$result = db_query("SELECT DISTINCT b.nid, n.title FROM {book} b INNER JOIN {node} n ON b.vid = n.vid WHERE b.parent = %d AND n.moderate = 0 AND n.status = 1 ORDER BY b.weight, n.title ASC", $nid);
// Output pretty two-column list
$half = ceil(db_num_rows($result) / 2); $i = 0;
$section = '<div class="column-left"><ul>';
while ($page = db_fetch_object($result)) {
$section .= '<li>'. l($page->title, 'node/'. $page->nid) .'</li>';
$i++;
if ($i == $half) {
$section .= '</ul></div><div class="column-right"><ul>';
}
}
$section .= '</ul></div>';
print $section;
}
/*
<ul>
<li><a href="getting-started">Getting Started</a></li>
<li><a href="node/257">Customization - Tutorials, Snippets and HowTo</a></li>
<li><a href="theme-guide">Theme Developers' Guide</a></li>
<li><a href="contributors-guide">Developing for Drupal</a></li>
<li><a href="about">About Drupal</a></li>
</ul>
*/
?><br class="clear" /><!--break-->
<p>Each handbook is © copyright 2000-2007 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. </p>