diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-06-15 19:06:25 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-06-15 19:06:25 +0000 |
commit | eb030cb9d8839bd08cb2bd1e4f954efe37047303 (patch) | |
tree | dcd7f9e913cbf5707208bfc36376e38632eb05c8 /modules/book.module | |
parent | a0e0ea93371646a28c3dc71b0b077035ab6569d6 (diff) | |
download | brdo-eb030cb9d8839bd08cb2bd1e4f954efe37047303.tar.gz brdo-eb030cb9d8839bd08cb2bd1e4f954efe37047303.tar.bz2 |
- Improvements: XHTML-ifications. Patch by GmbH.
Diffstat (limited to 'modules/book.module')
-rw-r--r-- | modules/book.module | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/book.module b/modules/book.module index 2f4c0ec6a..fef661c9c 100644 --- a/modules/book.module +++ b/modules/book.module @@ -368,7 +368,6 @@ function book_body($node) { } function book_view($node, $main = 0) { - global $mod; /* ** Always display the most recently approved revision of a node @@ -376,7 +375,7 @@ function book_view($node, $main = 0) { ** the moderation queue. */ - if ($node->moderate && $mod != "queue") { + if ($node->moderate && arg(0) != "queue") { $revision = book_revision_load($node, array("moderate" => 0, "status" => 1)); if ($revision) { @@ -777,7 +776,7 @@ function book_help() { $output .= "<p>A book page is a special node type that allows you to embed PHP within the body of the page. This capability is only offerred to administrators, since malicious users could abuse this power. In addiiton, book pages contain a <i>log message</i> field which helps your users understand the motivation behind an edit of a book page. Each edited version of a book page is stored as a new revision of a node. This capability makes it easy to revert to an old version of a page, should that be desirable.</p>"; $output .= "<p>Like other node types, book submissions and edits may be subject to moderation, depending on your configuration. Similarly, books use ". l("permissions", "admin/user/permission") ." to determine who may read and write to them. Only administrators are allowed to create new books, which are really just nodes whose parent is <i><root></i>. To include an existing node in your book, click on the \"administer\"-link in that node. At the bottom of this administration page, click on the <i>edit book outline</i> button. This enables you to place the node wherever you'd like within the book hierarchy. To add a new node into your book, use the <i>create book page</i> link.</p>"; $output .= "<p>Administrators may review the hierarchy of their books by clicking on the ". l("collaborative book", "admin/node/book")." link in the adminstration pages. There, nodes may be edited, reorganized, removed from book, and deleted. This behavior may change in the future. When a parent node is deleted, it may leave behind child nodes. These nodes are now <i>orphans</i>. Administrators should periodically ". l("review their books for orphans", "admin/node/book/orphan") ." and reaffiliate those pages as desired. Finally, administrators may also ". l("export their books", "book/print") ." to a single, flat HTML page which is suitable for printing.</p>"; - $output .= "<a name=\"faq\"></a><h3>Maintaining a FAQ using a collaborative book</h3>"; + $output .= "<a id=\"faq\"></a><h3>Maintaining a FAQ using a collaborative book</h3>"; $output .= "<p>Collaborative books let you easily set up a Frequently Asked Questions section on your web site. The main benefit is that you don't have to write all the questions/answers by yourself - let the community do it for you!</p>"; $output .= "<p>In order to set up the FAQ, you have to create a new book which will hold all your content. To do so, click on <i>create book page</i> in your user box. Give it a thoughtful title, and body. A title like \"Estonia Travel - FAQ\" is nice. You may always edit these fields later. You will probably want to designate <i><root></i> as the parent of this page. Leave the <i>log message</i> and <i>type</i> fields blank for now. After you have submitted this book page, you are ready to begin filling up your book with questions that are frequently asked.</p>"; $output .= "<p>Whenever you come across a post which you want to include in your FAQ, click on the <i>administer</i> link. Then click on the <i>edit book outline</i> button at the bottom of the page. Then place the relevant post wherever is most appropriate in your book by selecting a <i>parent</i>. Books are quite flexible. They can have sections like <i>Flying to Estonia</i>, <i>Eating in Estonia</i> and so on. As you get more experienced with the <i>collaborative book</i>, you can reorganize posts in your book so that it stays organized.</p>"; |