Hello,

I just installed this module into Drupal 7, configured it like this:

Titles:
You are here »[node:type] » [node:title]

Path:

Is there something that I did wrong here?

Comments

gilzero’s picture

Hello, you should read the instruction (aka readme) first. :)

Correct way:

Titles*:
[node:type]
[node:title]

Path*:
[node:type]
[node:type]/[node:title]
bryancasler’s picture

I tried these settings, but no dice.

Also the D7 readme file doesn't seem to exist.

I'm also using panels, and I'm not sure if that could be effecting the outcome.

bradhawkins’s picture

I've also found that when using Panels, the node info (e.g., [node:type],[node:title], etc.) is not passed through.

If I disable panels, custom breadcrumbs functions as expected.

rovo’s picture

There is no ReadMe for the D7 version.

MGN’s picture

The 7.x-1.x version doesn't support panels. 7.x-2.x will, once its ported from 6.x-2.x.
I'll add a readme for the d7 version - its pretty much the same as the 6.x-1.x version at this point.

MGN’s picture

Status: Active » Fixed

A readme.txt file has been added to 7.x-1.x-dev.

Status: Fixed » Closed (fixed)

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

onlasyn’s picture

Issue tags: +custom breadcrumbs

i've installed this (Custom breadcrumbs) module. And created custom breadcrumb. Selected contenttype, and for titles wrote [term:name], for path [term:url:path].
But nothing there. there simple "Home".
I want to make like this: Home>(taxonomy/term/number) or (allias with pathauto) for example term1.
Could anybody help me? Please

luco’s picture

Status: Closed (fixed) » Active

same here. I configured custom breadcrumbs for Article nodes like so:

titles:

Blog
[node:created:custom:Y]
[node:created:custom:m]

paths:

blog
blog/[node:created:custom:Y]
blog/[node:created:custom:Y]/[node:created:custom:m]

but it just won't appear! am I missing something? and yes, I did read the instructions.

thanks in advance,
Luciano

luco’s picture

Version: 7.x-1.0-alpha1 » 7.x-2.x-dev
luco’s picture

I've been fiddling with this issue for days now with no result.

I switched themes - tried on Zen, Seven, Bartik and Omega - and nothing.

I can see the custom_breadcrumbs_node_view function is executed, but for some reason the call to drupal_set_breadcrumb doesn't work.

any help would be greatly appreciated, as I'm pulling my hair out...

thanks in advance.

luco’s picture

well, apparently the module does execute drupal_set_breadcrumb correctly, but then the theme overrides it with its own breadcrumb implementation.

so I stored breadcrumb information in a global variable and then retrieved it via template.php - it worked.

still searching for something that works without having to fiddle with themes, though.

liquidcms’s picture

Category: support » bug
Priority: Normal » Major

i have used this module a lot in D6 and always seemed pretty straightforward; but no luck so far with latest D7 -dev version.

2 issues:
- node tokens don't work for panels (i think there are other issues open for this)
- and, more importantly, the module doesn't seem to modify anything that i could see to add in a panel

i have this: http://screencast.com/t/qJV4oeKLoqDH - this is a node tpl override from panels

- the top one is the std drupal breadcrumb that i get if i enable it through theme settings - this is correct (although node tokens dont work)
- the 2nd one is the std panels Page Element -> breadcrumb, which only ever shows Home (and is not affected by even the Home setting in CB
- the 3rd is another panel content bit that the Delta module gives me; also incorrect and unaffected by CB

so i guess the question is what is it that i toss into a pane to get CB breadcrumbs?

in D6 we also use Panels and CB would override the default Breadcrumb element - pretty sure this no longer works.

BTW.. if i switch to Bartik theme, still does not work

liquidcms’s picture

Status: Active » Closed (duplicate)

patch here fixed my issue: #1251520: Panels crumbs don't get set to panels breadcrumb pane. :) - i'll mark this as duplicate

now to get node tokens working

liquidcms’s picture

and as an added bonus i can now use std node cb even though overriding with panels tpl; which then means node tokens work again.. :)

luco’s picture

Title: Custom breadcrumbs not working in Drupal 7 » Custom breadcrumbs not working in Drupal 7 (possibly due to module execution order)
Status: Closed (duplicate) » Active

thanks for the replies, liquidcms, but my problem is still there.

the solution you've found deals only with the relationship between Custom Breadcrumbs and Panels.

my problem is that there appears to be a conflict between Custom breadcrumbs and Node Hierarchy. if both are enabled, Custom breadcrumbs' output gets overridden.

I think this is related to module execution order, but I'm not sure.

liquidcms’s picture

yes, i have seen other modules like either core forum or advanced forum which also are not impacted by CB.

luco’s picture

got it!

here's code adapted from this post which puts Custom breadcrumbs last in module execution order. that resolved the conflict with Node Hierarchy:

<?php

function reorder_cb_module_implements_alter (&$module_list, $context) {
  if ($context === "node_view") {
    $temp = $module_list['custom_breadcrumbs'];
	//removing Custom breadcrumbs key/value
	unset ($module_list['custom_breadcrumbs']);
	//adding Custom breadcrumbs key/value as the last member in the list
	$module_list['custom_breadcrumbs'] = $temp;
  }
}

would you like to test and see if this solution does it for Panels conflicts?

cheers,
Luciano

liquidcms’s picture

i see there is a hook_module_implements_alter() which means you created a module called reorder_cb? why not just add this to the cb module itself?

will give it a shot tomorrow to see if it fixes for forum/advanced forum

luco’s picture

yeah, that's it: I created a custom module according to tutorials I read. seemed like a pretty fast way to get the results I needed. ;)

liquidcms’s picture

solution in #18 doesn't work for advanced forum's panel for a forum. likely since i don;t think the context is ever node_view; but possibly for some other context this would work.

silurius’s picture

I had disabled and uninstalled Panels but my issue remained - something seemed to be overriding or disabling custom views and taxonomy breadcrumbs, when both had been working under the same version of CB some months ago.

Adding the code from #18 to the top of the CB module got me a little further. Suddenly, custom taxonomy breadcrumbs were functional again. Sadly, custom views breadcrumbs still are not.

luco’s picture

@silurius try removing the if ($context === "node_view") bit, see how it works for you and report back please.

codecouleurs’s picture

Issue summary: View changes

If you use the module Menu trail by path, don't forget to uncheck the option "Enable breadcrumb handling" in admin/structure/menu_trail_by_path

haleagar’s picture

The issue with panels is not order but rather that if you are not including the full node content in the page then hook_node_view is not called. That is when custom_breadcrumbs is triggered and only with build_mode == 'full'.

RobbM’s picture

@luco, would you minding sharing your code for #12?

I seem to have the same issue (with Zen overriding Custom Breadcrumbs).