Index: s5_book.module =================================================================== --- s5_book.module (revision 1366) +++ s5_book.module (working copy) @@ -141,7 +141,6 @@ * Flattens the book structure, immediately closing slides for every node */ function s5_book_node_display($node, $depth, $nid) { - // Let the content hook take action (taken from book.module) if (node_hook($node, 'content')) { $node = node_invoke($node, 'content'); @@ -149,8 +148,17 @@ // Enclose slide in wrapper (you can have handout info on slide) if ($node->body) { - return '

'. check_plain($node->title) ."

\n". - $node->body .'
'; + // Allow multiple slides per node + $slides = explode(variable_get('s5_textfield_page_separator', ''), $node->body); + foreach ($slides as $slide) { + list($title, $body) = explode(variable_get('s5_textfield_title_separator', ''), $slide); + if ($title && $body) + $output .= '

'. check_plain($title) ."

\n". $body .'
'; + else + $output .= '

'. check_plain($node->title) ."

\n". $slide .'
'; + } + + return $output; } }