By devbox on
Hi all.
Finally after some days of test I begin to understand Drupal and make it work :)
I found that the book module is quite the one I need: I'd like to let authenticated users to write articles (book pages) that will still be at the same place and not as the blog articles.
The only problem is that when a user create a new page there is a combobox that list all the books and the book pages that will be the page parent.
I'd like to left in the list only the books and not the pages, first because I want that the users could add pages only to a book, second because if the pages written are 10thousands the list will be looong :)
There is a way to filter the combobox?
Thanks
Comments
an option
maybe something like "node relativity" (http://drupal.org/project/relativity)? i am sure there are others, but i can't seem to find them at the moment. no, i have not tried it myself, yet.
good luck!
No, it does not do what I
No, it does not do what I need :(
I find that the list is done in the book.module in the
book_toc_recursefunction when I can add theif ($indent == '')under the foreach, but I'd like to distinguish users from the admin.Someone can tell me how to do it?
Thanks
another possibility
If "book" almost does what you want, consider the "How to make a duplicate Book module" handbook page, and do what you want to it (it will be a custom content type), without "touching" core. Note the comment about the Outline module option in 5.x.
Sorry I can't be of help.
Well, thank you for the
Well, thank you for the link.
I found another better solution to my problem, I say it in case someone has the same need: remove the "if" I added in my last post, but modify the SQL statement in the
book_tocfunction: addAND b.parent = 0in the WHERE condition.