Control book outline form and menu for specified Drupal node types
Drupal has a good potential to be used as a blog, forum (some what), wiki or any other dedicated web application or combination of two or more services. Drupal as a wiki, out of the box is a little weird. Problem is Drupal organizes wiki as book pages and books and book pages are related. Some people might not agree that book node/content type is a form of wiki but they can be used as one.
Problem:
The problem using Drupal book module and book pages as wiki is, the book page module adds book outline form part and the book outline menu as node/x/outline to all node types. All the node types do not need to be part of a book/wiki page. So this is the awkward part. I had to develop an application that had a wiki as a part with blogs and events as other services. So I faced this problem.
The Search:
Then I searched for the solution to show book outline form part and the book outline module in only specified Drupal nodes/content types. At the d.o (I hear this in all screencasts and podcasts - its Drupal.org ;) ) site I found this node: http://drupal.org/node/251798 - and a code snippet by mooffie. But the code was very basic and not configurable or flexible.
A Simple Move:
I decided to use the code as it was a solution to my problem but also thought to make a configurable module out of it. So the module is called nobookoutline now, I have not put it in d.o as I'm not confident of getting a CVS account :). Here is the download link for the module.
The Solution:
The module provides a user interface to select which node/content types you want to show the book outline form and /outline menu option to. Below is the screen-shot of the page you can see in Admin>> Content>> Book Outline Settings after you download and enable the module and login as site admin. you can access the page by going to admin/content/nobookoutline.
(Control book outline form and menu for specified Drupal node types >>)
Comments
Post new comment