Instructions for using custom breadcrumbs?
neubreed - February 25, 2007 - 23:45
| Project: | Custom Breadcrumbs |
| Version: | 6.x-1.x-dev |
| Component: | Documentation |
| Category: | task |
| Priority: | normal |
| Assigned: | MGN |
| Status: | closed |
Jump to:
Description
Hey.
I'm not too sure if I'm taking full advantage of this module. I type a few things into the boxes but the page doesn't allow me to save.
There are no instructions or error messages to be seen.
Any help would be greatly appreciated!

#1
Jeff *loves* writing documentation! :)
I agree though - I managed to work out how to use this for one path per node type, but after that I would be stuck. Fortunately I don't need that right now... :) Glad I have this module though, it's just saved me a real pain in the butt.
#2
I've got it working to a degree, but I can't seemed to go deeper than two levels
#3
Even a few paragraphs of documentation would be helpful. I've tried a few things, and am not having success. So please don't withhold documentation just because it's not complete.
#4
From a personal point of view, the only success I've had with this has been extremely limited.
On my latest project, I have two sections containing custom nodes (testimonials and external links). If I drill down to an individual node, the breadcrumbs would not normally be affected, hence the need for custom_breadcrumbs. In my c_b module settings page (/admin/build/custom_breadcrumbs) I can add a custom breadcrumb by clicking the relevant link, which presents me with three form inputs: node type, titles and paths. In my existing setup, I have used only one title and path for each of testimonials and links, and it's pretty self explanatory: select the node type (e.g. testimonials), input the breadcrumb link title(s) (e.g. "Testimonials") and the link, which will point to the URL of the relevant page, in this case a paged View containing a list of (guess what) Testimonials. The link is set up to be (shock!) "testimonials"! - there is no leading or trailing slash, unless you have paths to nested urls.
If this is of *any* use I'll be surprised, and I certainly don't know how to set it up as per the description on the module home page.
#5
Here's a quick overview. Each matching LINE in the 'title' and 'path' fields is a separate breadcrumb entry. Thus, in paths you might use:
taxonomy/term/[term-id]
node/[field-parent_node_nid]
node/[nid]
while in the title field you might enter:
[term]
[field-parent_node]
[title]
that would create three breadcrumb trail entries. One pointing to the taxonomy term on the current node, another pointing to the CCK nodereference 'parent_node' field, and another pointing to the current node itself.
It's important to remember that you're setting up *paths and their titles* -- not magical 'breadcrumb elements'. Pathauto just makes long paths, while custom_breadcrumb makes a *set* of paths and matching titles.
#6
I'm even more confused now...! :)
Can you give an example set of "before and after" paths that relate to the above example setup?
Thanks Jeff.
#7
Furthermore, I guess the above depends on the token module being installed...
#8
A manual would be wonderful! :)
In the module description it says it synchronize with the view module. What exactly does that mean?
#9
how can i override the "home"?
Thanks.
#10
A demo or a readme file with this module would be highly appreciated.
#11
As the name suggests, Custom Breadcrumbs allows you to create and modify your own breadcrumbs based on node type. After enabling the module, click on Administer > Site building > Custom breadcrumbs. On this page you'll see the option to add a new custom breadcrumb.
Clicking on that link, you have the option to select the node type the breadcrumb will apply to.
There are two text fields below-- "Titles" and "Paths." When creating a breadcrumb, you're simply creating a link. In the custom breadcrumbs interface "Titles" describes the text of the breadcrumb while "Paths" describes the Drupal path the breadcrumb links to. Each Title must have a corresponding Path. [Unfortunately, there's a bug so if you have a different number of Titles and Paths it will simply reload the form instead of showing the error (but you won't be able to save the breadcrumb).]
To give a very simple example of how to use this module, let's say I have a blog on my web site called "Deep Thoughts." To create this, I use the Views module to create a page at /blog that displays all the node types "blog post." Whenever a user views a blog post I want the breadcrumb to show Home > Deep Thoughts instead of simply Home. To do this I would simply type "Deep Thoughts" in the "Titles" field and and "blog" in the "Paths" field and save my breadcrumb.
Using the Tokens module, the Custom breadcrumbs module becomes much more flexible because my breadcrumbs can become dynamic. So I could create a breadcrumb like Home > Deep Thoughts > [Month of Blog Post] [Year of Blog Post] Where "Deep Thoughts" links to my main blog page and "[Month of Blog Post] [Year of Blog Post]" links to a view that shows only blog posts from the month and year the blog post was created (e.g. June 2007). To do this I would do the following:
Node Type:
Blog Post
Titles:
Deep Thoughts
[month] [yyyy]
Paths:
blog
blog/[mm]_[yyyy]
(where of course, blog/[mm]_[yyyy] is the path to the view of blog posts from that month and year).
So if I created a blog post today (June 13, 2007) my breadcrumb would show Home > Deep Thoughts > June 2007 and "June 2007" links to "blog/06_2007" which is a view of all blog posts from June 2007.
Also, note that Custom Breadcrumbs doesn't actually check to be sure that a particular path exists, so you'll have to check yourself to avoid 404 errors.
Hope this helps!
#12
Nice work bennynbobw! ;)
Issue fixed?
#13
#14
bennybobw, I'm going to add that as a book page if you don't mind.
#15
sounds great
-bennybobw
#16
Excellent mod once you figure it out. Post #5 explains everything.
#17
The module maintainer ought to add a link to the documentation page in the module node settings:
http://drupal.org/node/228955
#18
I've tried a few things, but I still can't seem to get this configured properly.
I'm trying to set up a website for a college which will organize all of the courses and faculty for each department in the college. I made custom content types for 'courses' and 'faculty', and I made taxonomy terms to keep track of what department they're in. If I click on a faculty member that is in the art department, I'd like it to say home > art > name. Currently, it just says home > name.
Would it be something like this?
Node Type:
Courses
Titles:
[term-raw]
[title]
Paths:
??
The description says how to replace part of the breadcrumb (replacing blog with Deep Thoughts), but I'm not sure how to make a whole new part of the breadcrumb for the term.
Thanks!
#19
Hi.
I got the idea behind this module. I set it like that:
Type:
Author
Title:
Authors
[title]
Path:
authors
authors/[title-raw]
BUT! The title-raw output exactly the title of the page, ex: "Asakura Yoh", and not "asakura-yoh". Is there a way to do that?
In autopath, it's exactly that.
Thanks!
#20
Instead of using authors/[title-raw] just use [menupath] and it should work.
#21
Well, this what I was looking for! With token module it works as it should be. Thanks for this great module.
#22
Than you this. Could you create README.txt into your awesome module with this:
#23
I can't get it to work. There are no error messages, it just doesn't save anything and fails to set breadcrumbs.
#24
@Mark Theunissen
please start another issue, and describe what version you are using (I would recommend 6.x-1.x dev right now since several patches were just applied), and give more specific details about the custom breadcrumbs that you have set up, what behavior your expected, and what you actually saw. The more detailed information you give, the better able we will be to help you.
But it really should be a separate issue...
#25
Yeah I know, I'm just being lazy. ;)
Will check out the dev release. Just outputting error messages would be a good start though.
#26
Thanks for helping assemble the documentation for this. I supplemented the material supplied by bennybobw and dbabbage to create a README.txt file for the module. It has been committed to 6.x.1.x-dev and a link is available on the project page. Please read through it and provide suggestions for improvements additions or deletions in a separate issue. This issue is now fixed.
#27
Automatically closed -- issue fixed for 2 weeks with no activity.