Closed (fixed)
Project:
Custom Breadcrumbs
Version:
6.x-2.0-beta2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2009 at 15:30 UTC
Updated:
23 Jan 2010 at 16:55 UTC
Hi,
I am trying to set a breadcrumb for each individual blogger's page, and the display (literally) looks like:
Home » Blogs » [author-name]'s Blog
I have enabled Token module - what am I doing wrong?
Specific path: blog/*
Titles:
Blogs
[author-name]'s Blog
Paths:
blog
<none>
I've also tried to Edit CB for Node, with node type Blog.
The display is ignoring what I've configured below, and just shows:
Home >> the title
Titles:
Blogs
[author-name]'s Blog
[title]
Paths:
blog
blog/[author-uid]
<none>
My setting for CB are all Basic clicked on, and for Advanced, use menu and use wildcard clicked on. The blog pages on the site are not part of the menus.
Thanks for any clues. I am not sure how to troubleshoot this myself.
Comments
Comment #1
MGN commentedSorry. I have tried to reproduce this on a test site but haven't had any trouble with these tokens. Have you checked the other node tokens (like [title] and [nid]) to see if they give the correct results?
Which of the custom_breadcrumbs modules are enabled?
Since you are having trouble with node type breadcrumb, I would try turning off the other custom breadcrumbs modules, one at a time, to see if the node type breadcrumbs start working correctly. If not, I would re-enable them and run update.php to make sure any needed module updates were run, and then try again, first without tokens to make sure the custom breadcrumbs are appearing on the correct pages. Try to determine if the problem is really with a specific token or class of tokens, or if there are other problems as well.
Comment #2
MGN commentedComment #3
MGN commentedI am closing this because its gone a long time without followup and the 6.x-2.x-dev codebase has changed considerably since June. If you are still have trouble with the current code, feel free to reopen this issue.
Comment #4
TimG1 commentedI'm having the same problem except with Book tokens and some other ones too. Here are some that I tried that either put out the token name itself or nothing at all. I'm using custom breadcrumbs version 6.x-2.0-beta2.
Outputs nothing
[bookpathalias]Outputs token name
What I'm trying to do is make my breadcrumbs like.... Home > Taxonomy Term > Book Name
Home would link to the homepage...
Taxonomy Term would link to the term page...
Book Name would link to the topmost page of that book...
Here are the settings I'm trying....
Titles
Paths
This outputs Home > Term Name > Book Name. Home and Term Name are linked correctly, but Book Name links to the homepage instead of the Book because it's outputting nothing.
I'm also using the pathauto module, I don't know if that has anything to do with anything. I'm not sure if I'm just using this wrong of if this is a bug.
Any help is appreciated, thanks!
-Tim
Comment #5
TimG1 commentedComment #6
MGN commentedAm I correct in assuming that this is intended for the core book node type, and you are setting up a node-type custom breadcrumb?
For the paths, custom breadcrumbs is expecting a relative drupal path, not a fully formed url. So [url] and [*alias] tokens aren't appropriate here.
How do you have pathauto configuring the path for book pages? For example, you could try using the [bookpath] tokens. If your pathauto alias is [bookpath-raw]/[title-raw] you could use
Paths
Comment #7
TimG1 commentedHi MGN,
Thanks for your reply.
Yes, I'm using the core book node type and am setting up a node-type custom breadcrumb.
In my Site Settings > URL aliases > Automatic alias settings > Node Path Settings > Pattern for all Book page paths = [title-raw]
For the Path Settings in Custom Breadcrumb when I try....
[title-raw] the output is the Title Of The Current Node
[bookpath-raw] the output is The Title of the Book The Current Node Belongs To
What I really want is a token for The URL Alias Of The Top Level Book Node The Current Node Belongs To...Whew!
Please let me know if I'm not making sense...or am missing something...quite likely. =)
-Tim
Comment #8
MGN commentedHow about using something like
Paths
This should be the path to the node's book parent.
Comment #9
TimG1 commentedWoot! That did the trick! It even directed to the URL alias instead of node/[book_id] which I wasn't expecting. I think that part may have had something to do with the pathauto & URL redirect modules I have installed?
Thanks for the tip!
-Tim
Comment #10
MGN commentedIts a feature :-) The result of using drupal l and urlapi function to form the links. It checks for path aliases and uses them if found. Glad to hear its working