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.
| Comment | File | Size | Author |
|---|---|---|---|
| alter.patch | 792 bytes | owen barton |
Comments
Comment #1
moshe weitzman commentedSeems like a clever solution.
Comment #2
sunSomehow already in CVS.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.