- ... and order things by weight
parent
6e9982e090
commit
5e9f9b3633
|
@ -221,7 +221,7 @@ function book_admin() {
|
|||
function book_page() {
|
||||
global $status, $theme;
|
||||
|
||||
$result = db_query("SELECT n.*, b.* FROM node n LEFT JOIN book b ON n.nid = b.nid AND n.lid = b.lid WHERE b.parent = 0 AND n.status = $status[posted]");
|
||||
$result = db_query("SELECT n.*, b.* FROM node n LEFT JOIN book b ON n.nid = b.nid AND n.lid = b.lid WHERE b.parent = 0 AND n.status = $status[posted] ORDER BY b.weight");
|
||||
|
||||
while ($node = db_fetch_object($result)) {
|
||||
$output .= "<DT><A HREF=\"node.php?id=$node->nid\">". check_output($node->title) ."</A></DT><DD>". check_output($node->body, 1) ."<BR><BR></DD>";
|
||||
|
|
|
@ -221,7 +221,7 @@ function book_admin() {
|
|||
function book_page() {
|
||||
global $status, $theme;
|
||||
|
||||
$result = db_query("SELECT n.*, b.* FROM node n LEFT JOIN book b ON n.nid = b.nid AND n.lid = b.lid WHERE b.parent = 0 AND n.status = $status[posted]");
|
||||
$result = db_query("SELECT n.*, b.* FROM node n LEFT JOIN book b ON n.nid = b.nid AND n.lid = b.lid WHERE b.parent = 0 AND n.status = $status[posted] ORDER BY b.weight");
|
||||
|
||||
while ($node = db_fetch_object($result)) {
|
||||
$output .= "<DT><A HREF=\"node.php?id=$node->nid\">". check_output($node->title) ."</A></DT><DD>". check_output($node->body, 1) ."<BR><BR></DD>";
|
||||
|
|
Loading…
Reference in New Issue