Hi there, this module is more or less what I was looking for, there is one thing I would like to do, but I don't know how:
Make the block visible only when any of the pages, parents or children, of the corresponding book is displayed.
I mean, let say I have two books linked from a menu, when I click on the link for book1, the content of book1 appears, I would also like to make appear the bookblock1, and only bookblock1, and if I click any of the child pages, still have the bookblock1 available.
And if I click the link for book2, have the same behaviour, but with corresponding bookblock2.

Thanks for helping

Comments

andrés chandía’s picture

I have found the answer in here:

http://drupal.org/node/44648#comment-4825398

andrés chandía’s picture

Sorry, I spoke too fast, it does the same as the book block module does.

So I keep searching for a way to make it visible only when any of the pages of the book is being shown.

mcjim’s picture

Assigned: Unassigned » mcjim
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

I think what you want is the core "book navigation block", not the one supplied by this module.

is this right?

http://drupal.org/documentation/modules/book

andrés chandía’s picture

Nop, Core navigation block shows you all the books always, book block module shows you the books one per block, this is ok. what I need is a kind of contextual visualization:

block BOOK1 > only shows when any of the pages of BOOK1 is displayed (don't show when any of the pages of BOOK2 is displayed)

block BOOK2 > only shows when any of the pages of BOOK2 is displayed (don't show when any of the pages of BOOK1 is displayed)

thanks anyway for your interest.

sinagod2’s picture

In Drupal 7 I use url aliases to accomplish this.
Make sure you have the url aliases module installed and enabled.
1) Go to Content/Book/Book Blocks
2) Select the books you want to generate the nav. block for
3) Go to configuration/Search and Metadata/URL Aliases/Patterns
4) In the "Pattern for all Book page paths" field enter [node:book:root]/[node:book]
5) For each book page,scroll to the bottom of the page and you'll see the "URL path settings" tab
6) Check "Generate automatic URL alias"
7) Go to Structure/Blocks
8) Configure the Book Block
9) In the Pages tab in the "Show block on specific pages" section click the radio button "Only the listed pages"
10) In the text area box list the pages you want the block to appear on,
ie
block1
block1/*
11) In the Content Types tab uncheck all checkboxes
12) Save
13) Go to your book and you'll see the nav for only the book1 book

andrés chandía’s picture

Issue summary: View changes

I've done exactly the way you say but does not work for me, I mean, I can see the block at the top page of the book, but if I go 1 page down I cannot see the block, by the way, the "url aliases" module is called "path auto".

For instance, I have the book "Periods" which inside has the chapter "Middle Age", if I click "periods" I can see the block "Periods", but if I click the child page "Middle Age" I see it no more

At the "Only the listed pages" configuration of the block I had to put it this way, otherwise it does not work:
content/periodes
content/periodes/*

At the "Pattern for all Book page paths" I have, "Pattern for all language neutral Book page paths" and "Pattern for all Catalan Book page paths", because I have a multilingual site, at both I have put "[node:book:root]/[node:book]"

Another info I see, which I don't know is relevant is this: "bookblock/393" which is the block I'm working with.

Thanks for your help

andrés chandía’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)