When using a panels2 node/% override, adding the content pane with "no_extras" enabled means that custom_breadcrumbs is not triggered and that content type no longer gets breadcrumbs.

This is because the "view" hook is where other modules (e.g. CCK) add their content to the node, and hence in this case you don't want that (since you are placing the fields with panels, which is normally the whole point). My solution was to change custom_breadcrumbs so it uses the 'alter' hook, rather than view. This means it triggers whenever the "core" content area of the node is shown (but only when not as a teaser and on a page by itself) regardless of if the remaining node content is added or not.

I am not quite sure if this is the perfect solution - I can't think of any cases where it would cause problems, but it's possible. Either way it solves this issue with panels that cannot be easily solved in other ways (since panels logic is correct).

Patch is attached - I am happy to forward port to 6 branch if there is interest.

CommentFileSizeAuthor
alter.patch792 bytesowen barton

Comments

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

Seems like a clever solution.

sun’s picture

Status: Reviewed & tested by the community » Fixed

Somehow already in CVS.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.