I'm using the 6.x-2.0-beta2 release and I'm having difficulty finding any documentation referring to getting the Custom Breadcrumbs to work with Panels. Is this supported?
If so, I am using Panels to override the "Gallery" node, but I'm not quite sure how to setup the CB to work with Panels. In CB, should I be using node type "Gallery" or "Panel" when I setup the custom breadcrumb?
Also, if I have a gallery that has a url of "www.example.com/gallery/name-of-gallery", how do I configure the "Titles" and "Paths" sections to have a breadcrumb show "Home > Gallery > Name of Gallery"?
Huge thanks to anyone who reads this...
Comments
Comment #1
redben commentedYou should enable the custom breadcrumb panels module (which comes with custom breadcrumbs)
and go to admin/build/custom_breadcrumbs/panels/add
For your second question, if you have pathauto, do:
Replace this last line with node/[nid] if you don't have pathauto
By the way i wanted to say that the 2.x brach is a huge step forward! Awsome :) . Have been watching custom breadcrumb for sometime but now it is definetely in my "modules i can't work without" list. Thanks a lot MGN and the rest of the team !
Comment #2
MGN commentedThanks redben. Note that if gallery is a panel node (created at node/add/panel), then you can create a node-type custom breadcrumb. In this case, if name-of-gallery is the title of the node (and you are using the tokens module), then you can get the breadcrumb you are looking for by
If gallery is a panel page (created at admin/build/pages/add), then you'll need to create a panels-type custom breadcrumb (as per redben's advice). You should see it in the select list when you visit custom_breadcrumbs/panels/add.
Comment #3
naero commentedThank you all - this is exactly what I needed.
Comment #4
tthenne commentedI know this thread hasn't been active for awhile and I'm opening it back up for one of the later releases of CB. Currently I have my panels overriding a specific node view or node/%node. I have the pathauto module working so it is aliasing the url to partners/[node:title]. When I go to a page that is using panels, my breadcrumbs show Home > [node:title] and I would like custom breadcrumbs to override it to show Home > Partners > [node:title] as this makes sense. I have a custom breadcrumb defined as:
Node Type*
Panel
Titles*
Partners
Paths*
partners
For some reason since I'm using the panels to override this node view, it doesn't seem that Custom Breadcrumbs is picking up on the breadcrumb definition that I've defined.
Any suggestions?
Thanks!
Comment #5
tthenne commentedJust to be a little more clear on this question. I am using the Panels module with Ctools to take over my node/%node with a variant setup to override a specific node type -> Profiles. I am also using pathauto module to alias the url of the node type of profiles to partners/[node:title]. Now I would like to setup Custom breadcrumbs so that when I am viewing a node type of profiles it shows Home>>Parnters>>[node:title]. I have enabled a custom breadcrumb with Node type* set to Panel (I have also tried with node type set to Profiles) and with the Titles* set to Partners and the paths set to partners (I have also tried
<pathauto>|[title-raw]with no luck).I've also tried disabling the Panel variant and Custom Breadcrumbs does work on the default drupal node view. However, when I enable the panel variant and use the node/%node template override, the Custom Breadcrumbs does not work.
Can anyone shine any light on what I might be doing wrong here?
Thanks,
TH
Comment #6
RCC_Adam commentedComment #7
RCC_Adam commentedComment #8
RCC_Adam commentedThis was previously set to version 7.x-1.0-alpha1 - because, as was stated above, it was a "wish" for the 7.x branch... However, I can't see how this applies to that branch other than just wishful thinking... I would think that, perhaps, if this is indeed wanted for the 7.x branch, it should be a "feature request" instead of just opening up an old "support request"... I changed the version back cause it was misleading - hope that is OK.
Comment #9
lamp5