[SOLVED]
OK, I finally found the error, obviously on my side. After I turn of the path breadcrumb module I realized, that the breadcrumbs are still duplicated. So its narrowed my searching towards Views. And there is a setting under Argument "Has taxonomy term (With Depth)" : Set the breadcrumb for the term parents - which makes the duplication.
[ORIGINAL MESSAGE]
Hi Spleshka,
at first thank for this module.
I have multilevel taxonomy tree used for categorizing products in Drupal Commerce eg.:
-First level (main category)
--second level (main subcategory)
---third level (category) <- I'm referencing products to this level
My setup:
path: taxonomy/term/%term
argument: Taxonomy term: ID
selection rules: nothing
breadcrumbs:
%term:parent:name /// %term:parent:url
%term:name ///
And the result is:
first level: Home >> First level (without link) – OK
second level: Home >> First level (with link) >> Second level (without link) >> First level (with link) – not OK, added again the first level
third level: Home >> First level (with link) >> Second level (with link) >> Third level (without link) >> First level (with link) >> Second level (with link) - not OK added agin the first and second level
What have I done wrong?
Here is an export of my setup:
$path_breadcrumb = new stdClass();
$path_breadcrumb->api_version = 1;
$path_breadcrumb->machine_name = 'taxonomie';
$path_breadcrumb->name = 'taxonomie';
$path_breadcrumb->path = 'taxonomy/term/%term';
$path_breadcrumb->data = array(
'titles' => array(
0 => '%term:parent:name',
1 => '%term:name',
),
'paths' => array(
0 => '%term:parent:url',
1 => '',
),
'home' => 1,
'translatable' => 0,
'arguments' => array(
'term' => array(
'position' => 2,
'argument' => 'term',
'settings' => array(
'identifier' => 'Taxonomy term: ID',
'input_form' => 'tid',
'vids' => array(
2 => 0,
3 => 0,
),
'breadcrumb' => 0,
'transform' => 0,
),
),
),
'access' => array(
'plugins' => array(),
'logic' => 'and',
),
);
$path_breadcrumb->weight = 0;
Thanks for your answer.
Comments
Comment #1
designerbrent commentedComment #1.0
designerbrent commentedAdded solution to this issue.
Comment #2
frederico commentedThank you for sharing this! It worked for me. I appreciate it very much. -Frederico