Displaying multiple books

mtndan - February 26, 2009 - 19:40
Project:Booktree
Version:6.x-1.0
Component:Code
Category:support request
Priority:normal
Assigned:Uccio
Status:closed
Description

How do I display multiple books on a single booktree page?

Thank you for contributing this module - it's just what I needed.

#1

Uccio - March 5, 2009 - 09:11
Assigned to:Anonymous» Uccio

mtndan,

This features is not provided by the booktree module but you can use the internal function to do multiple book in one page.
The snippet is:

<?

$maxricursione = 3;
$trimval = 50;
$booktree_start_1 = 17;
$booktree_start_2 = 19;

print booktree_mostra_figli($booktree_start_1,'Book 1'  ,1,$maxricursione,$trimval,$booktree_start_1);
print booktree_mostra_figli($booktree_start_1,'Book 2'  ,1,$maxricursione,$trimval,$booktree_start_2);

?>

Change $booktree_start_1 (root of book 1) according to your installation.

#2

mtndan - March 10, 2009 - 19:07

Thanks!

#3

Uccio - July 4, 2009 - 16:47
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.