Limit book depth?

Flying Drupalist - December 8, 2008 - 22:26
Project:Outline
Version:6.x-0.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:seutje
Status:active
Description

Hi, I would like to limit the depth of books, and it would be great if this module can do that. Thanks. :)

#1

beginner - December 9, 2008 - 03:21

This feature can be considered, but it will be a long while before I have time to work on it unless someone helps by providing a patch which I shall do my best to review promptly.

#2

seutje - March 18, 2009 - 15:56
Assigned to:Anonymous» seutje

just made a custom module to limit the depth of books in D6 because I needed it in a project, I will first optimize this, then make it sort of general use (remove the hardcoded depth limit and put it on a settings page) before making a patch that would work with Ouline

might already look into making it work on a per-book basis with a default to fall back to

#3

Flying Drupalist - March 18, 2009 - 16:46

Thanks a lot seutje! Though I have no need for per book settings.

#4

seutje - March 25, 2009 - 21:28

hmmm, is it just me or is this functionality already in?

#5

beginner - March 26, 2009 - 01:42

Not if I understand the feature request. Core limits book depth at 9. Outline.module doesn't change that.

The TOC depth setting that you see only limits the depth to which the table of content is *displayed*. After that depth, further content is collapsed and hidden in the TOC.

#6

seutje - March 26, 2009 - 10:49

oooh, I see

guess I'll have to add an option and make the helptext a bit less confusing

 
 

Drupal is a registered trademark of Dries Buytaert.