I'm working on an Ubercart site with the site organized as follows
brand
brand/category
brand/subcategory

I'm using Nodereference for the brands, and finally got the custom breadcrumb to work - except that the category & subcategory in the breadcrumbs are general and not hierarchical. Meaning, I'd like the category & subcategory to be only for that specific brand. I'm not sure if this is an issue with Custom Breadcrumbs or Views - any help pointing me in the right direction would be really appreciated. Thanks!

Comments

Bricks and Clicks Marketing’s picture

Without checking 'Use the taxonomy hierarchy to set the breadcrumb trail for nodes and taxonomy pages,' the breadcrumb is closer to what I want:

brand/category/[parent-subcategory//child-subcategory]

I'm just not sure how to separate the parent/child cubcategories and have them link to them hierarchically instead of to the general term pages.

Bricks and Clicks Marketing’s picture

*bump*

MGN’s picture

Status: Active » Postponed (maintainer needs more info)

Sorry for not replying sooner. It's hard to help without more specific details about what you are doing.

Can you explain (best if through a specific example)

  1. what you are trying to achieve (breadcrumb for what type of page - is it a node, a view, a page provided by a module or what?
  2. How have you configured custom breadcrumbs / What settings have you enabled?
  3. How have you setup the custom breadcrumb (type of custom breadcrumb, what did you do for titles, paths, and breadcrumb visibility)?
  4. What did you actually get for the breadcrumb ?
Bricks and Clicks Marketing’s picture

I'm updating to the latest beta - I changed the structure of the breadcrumbs since posting this. The other issue you responded to is newer and hopefully the update is all that needs to be done.

MGN’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Ok. Reopen if this is still an issue.

catchlight’s picture

Version: 6.x-2.0-beta1 » 6.x-2.0-beta2
Component: custom_breadcrumbs_taxonomy » custom_breadcrumbs
Assigned: Unassigned » catchlight
Status: Closed (fixed) » Active

Hi There,

I've tried using the Custom Breadcrumbs module (version 2) on a site that uses standard pages and sub-pages. ie:
---------------------
Primary Links
---------------------
Link A
- sub link 1
- sub link 2
- sub link 3
Link B
- sub link 4
- sub link 5
.. etc, etc ...

What is the best way to get Custom Breadcrumbs to display

"Home > Link A > sublink 2" for example?

Currently I'm getting ...

"Home > sublink2" with the Parent of sublink 2 not being listed in the breadcrumb trail.

These are all using the standard "Page" Content type within "Primary Links"

Any help would be greatly appreciated.

MGN’s picture

Assigned: catchlight » Unassigned
Status: Active » Closed (fixed)

At admin/settings/custom-breadcrumbs enable the option "Use the menu structure to set the breadcrumb trail" and select the menu that lists these pages.

If you have further questions on setting this up, please open a new support request since your request is different from arphaus' original question. Also, "Assigned to" is meant to apply to the person who is working on the issue... more information on the issue settings can be found in the Issue queue handbook. Thanks.

redben’s picture

Hi,
I didn't want to open yet another issue since this one looks like the one i have. Let me explain :
Say we have content types : Continent, Country and City.
Using node reference

  • City has field_country which points to a Country (obviously one value)
  • Country has field_continent which points to a Continent node (one value)

For paths the desired output is
ex: continents/europe/countries/france/cities/paris
The following was used to achieve this objective using pathauto

Continent:  continents/[title-raw]
Country:    [field_continent-path]/countries/[title-raw]  
City:       [field_country-path]/cities/[title-raw]  

Note that for countries we could have used continents/[field_continent-title-raw]/countries/[title-raw]
But for cities this pattern is impossible since City content type has no direct access to its parent continent. Fortunately pathauto gives us that token to put a parent's path as an element (wich includes grand parent in our case).
Custum breadcrumb
Creating breadcrumbs for continent and country was straight forward :

ex. Country
- titles
[field_continent-title]
- Paths
<pathauto>|[field_continent-path]     

The issue is about getting deeper in the hierarchy, in our example City
I'd like to have Europe > France > Paris
But i can't find a way to get the continent in the breadcrumb for node type City since there is no direct access to continent tokens from City
I thought about doing it with the menu (using custom breadcrumbs settings) but since we'll have a lot of data...this is not a viable solution

Is there anyway to achieve this ?
Or may be could custom breadcrumb offer a token, just like pathauto to get the breadcrumb of a referenced node then extend it. For example :

Content type city :
- titles
[field_country-breadcrumb-titles]
[title]
- Paths
<pathauto>|[field_country-breadcrumb-paths]
<none>     
redben’s picture

Status: Closed (fixed) » Active
MGN’s picture

@redben. Have you thought about doing this as a taxonomy and using custom breadcrumbs taxonomy? This really seems to be a well defined taxonomy structure. The only problem that I see would be the static 'cities' and 'countries' that separate the hierarchy.

I guess if the name of the continent is available in the url, you could also use the [argN] tokens that are part of the tokenSTARTER kit to extract that for use in the breadcrumb.

Otherwise, you'll need to find a way (tokens or a custom function) of including the continent information in the city node (which is essentially what taxonomy would do for you). Custom breadcrumbs uses tokens but doesn't offer any of its own. That's a job for other contrib modules ;-)

redben’s picture

Thanks MGN for the tips.
I'll try the two approaches you described and post back here (for reference). If i don't feel comfortable with these i guess i'll implement some new tokens.
Actually i have been thinking for a while now about implementing some "node reference graph" tokens. Some thing like [field_country.field_continent-title-raw]. This would be usefull for other use cases also :)

MGN’s picture

Status: Active » Closed (fixed)

Closing because I think the question has been answered. Feel free to reopen if there is more to be done here.