Panels node override for book pages breaks breadcrumbs and menus

bangpound - June 13, 2008 - 13:10
Project:Panels
Version:5.x-2.0-beta5
Component:Plugins - arguments
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

If you create a node override for book pages, breadcrumbs and menus stop behaving after you navigate deeper into the book hierarchy.

For example, if I have a book whose root page is called "The Story of Mr. Bubble," the breadcrumbs are fine for that page.

ex. crumbs: Home -> Mr. Bubble Products
ex. page title: The Story of Mr. Bubble

For a deeper item named "Mr. Bubble in the 21st Century" in that book, the breadcrumbs and menu should be:

ex. crumbs: Home -> Mr. Bubble Products -> The Story of Mr. Bubble
ex. page title: Mr. Bubble in the 21st Century

Instead, this is what we get:

ex. crumbs: Home
ex. page title: Mr. Bubble in the 21st Century

Without a node override, the book pages' hierarchy integrate into the menu system through the view operation of book_nodeapi.

With a node override, these operations should be called when the "no extras" box isn't checked for the node content pane, but I think Panels 2 must be setting the menu location and breadcrumbs in some other way, or not setting them at all. That's where I get lost.

#1

criznach - July 8, 2008 - 19:43

This also breaks the custom breadcrumbs module, which catches hook_nodeapi - view. Would there be any impact to invoking the "view" op from overriding panel pages?

#2

criznach - July 8, 2008 - 20:07

Try unchecking "no extras" on your node content panel. It worked for custom breadcrumbs.

#3

merlinofchaos - July 8, 2008 - 20:25

Be sure the "Node page" option is checked for your node content pane.

 
 

Drupal is a registered trademark of Dries Buytaert.