Closed (fixed)
Project:
Custom Breadcrumbs
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 May 2009 at 15:39 UTC
Updated:
22 Mar 2011 at 01:25 UTC
Jump to comment: Most recent file
Comments
Comment #1
MGN commentedThe core comment module sets the breadcrumb on the reply pages. Since these reply pages are forms (associated with nodes, but not nodes), Custom breadcrumbs 6.x-1.x can't alter the breadcrumb defined by the comment module. Same goes for taxonomy_breadcrumb.
There is a way to accomplish this. Custom breadcrumbs could implement hook_form_alter and check to see if it is a comment (in reply to a node). If it is, then cb could load the node and run custom_breadcrumbs_nodeapi() to set a custom breadcrumb according to the type of the node associated with the comment.
I will see if I can implement this as a feature request in custom_breadcrumbs 6.x-2.x-dev.
Comment #2
MGN commentedThis seems to work in 6.x-2.x-dev. I haven't tested it in 6.x-1.x, but I think it should work there also. If you would like to try it out, you can place this function in custom_breadcrumbs.module, or apply this patch (to 6.x-2.x-dev).
Comment #3
MGN commentedComment #4
puppetmast0r commentedThanks, I'll give it a try :)
Comment #5
MGN commentedCommitted to 6.x-2.x for further testing.