Active
Project:
Advanced Book Blocks
Version:
6.x-2.5
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Apr 2011 at 13:08 UTC
Updated:
22 May 2012 at 02:13 UTC
While I realize this does not address all of the permissions/view feature requests in the open issues list the attached patch at least mirrors the functionality in the core book block to only show the block on book pages.
| Comment | File | Size | Author |
|---|---|---|---|
| show_on_book_pages_only.patch | 7.27 KB | dworth |
Comments
Comment #1
hanskuiters commentedCould it be you switched the 'old' and 'new' file while creating this patch? This patch doesn't make sense the way it is now...
Comment #2
hanskuiters commentedI got it working. Thanks for the patch, although still old and new switched on creating the patch.
Comment #3
_vid commentedI'm looking forward to checking out the patch.
I didn't see this issue and I addressed this problem using jquery this week.
This code checks the menu for any active li's and hides the block if none are found (currently hard coded to look in #sidebar-left).
This relies on some styles I have that show only the current book's menu and hides the others.
/*Nav menu*/#sidebar-left .block-advancedbookblocks > .content > ul.menu > li {display:none;}
#sidebar-left .block-advancedbookblocks > .content > ul.menu > li.open,
#sidebar-left .block-advancedbookblocks > .content > ul.menu > li.active {display:block;}
CSS also posted on this issue: http://drupal.org/node/384546#comment-5200304
Note: edited 4/2/2012 for grammar.
Comment #4
ginorodrigues commentedThat´s a valuable patch for this module, but do I still have to place any block on that region?