blogtitle doesn't replace the blog title in breadcrumbs at the top of blog nodes. See the highlighted area in the screenshot for an example.

The attached patch fixes this. It assumes that blogtitle_get_blog_title() takes only one argument, $uid, as in the patch at #566610: blogtitle and realname are incompatible.

Thanks,
Andrew.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ashtonium’s picture

Status: Needs review » Needs work

This incorrectly affects the breadcrumbs on taxonomy term pages as well. Might be better to simply expose the blog title value to the Token module. Then a module like Custom Breadcrumbs can correctly override the blog node breadcrumbs and not force it be be directly under Home.

ashtonium’s picture

Status: Needs work » Needs review
FileSize
1.14 KB

maybe something like this? this patch adds on token hook implementations for [blogtitle] and [blogtitle-raw] which you can then use anywhere you use tokens, including the Custom Breadcrumbs module.

remi’s picture

Status: Needs review » Fixed

Thank you for your work! The patch files have been committed to version 1.3.

remi’s picture

Status: Fixed » Closed (fixed)
Andrew Schulman’s picture

So, what is it exactly that I'm supposed to do now, in order to make the blog title show up correctly in the breadcrumbs? I just upgraded to 6.x-1.3, and OOTB the blog title in breadcrumbs has reverted to "user's blog". Thanks, Andrew.

ashtonium’s picture

Version: 6.x-1.2 » 6.x-1.3
Status: Closed (fixed) » Needs review

@ remi: looks like the patch may not have been successfully applied... I don't see the code in the 6.x-1.3 version of blogtitle.module. I'm re-opening this issue and updating the version.

About the patch in #2:
It exposes the custom blog title as a Token. In order to make use of that token in the breadcrumbs, it requires the Custom Breadcrumbs and Token modules.

Token doesn't require any configuration and you've most likely already installed it since a number of other modules require it.

Custom Breadcrumbs allows you to define your own breadcrumbs per content type. With the above patch applied, you should have a new option to use tokens like [blogtitle] and [blogtitle-raw] in a custom breadcrumb for Blog entry node-types.

This may or may not be the best way of solving the issue, it just worked best for me so I proposed it as a possible solution. Please test it out and comment or submit a different patch for testing.