Skip to content

Instantly share code, notes, and snippets.

@vistar
Last active May 16, 2016 19:23
Show Gist options
  • Save vistar/4f4ac168af207c655144 to your computer and use it in GitHub Desktop.
Save vistar/4f4ac168af207c655144 to your computer and use it in GitHub Desktop.
$path_breadcrumb = new stdClass();
$path_breadcrumb->api_version = 1;
$path_breadcrumb->machine_name = 'catalog';
$path_breadcrumb->name = 'Catalog';
$path_breadcrumb->path = 'taxonomy/term/%term';
$path_breadcrumb->data = array(
'titles' => array(
0 => 'Каталог товаров',
1 => '%term:parents-all:5',
2 => '%term:parents-all:4',
3 => '%term:parents-all:3',
4 => '%term:parents-all:2',
5 => '%term:parents-all:1',
6 => '!page_title',
),
'paths' => array(
0 => 'catalog/all',
1 => '%term:parents-all:5:url',
2 => '%term:parents-all:4:url',
3 => '%term:parents-all:3:url',
4 => '%term:parents-all:2:url',
5 => '%term:parents-all:1:url',
6 => '<none>',
),
'home' => 1,
'translatable' => 0,
'arguments' => array(
'term' => array(
'position' => 2,
'argument' => 'term',
'settings' => array(
'identifier' => 'Taxonomy term: ID',
'input_form' => 'tid',
'vids' => array(
2 => '2',
5 => 0,
4 => 0,
3 => 0,
),
'breadcrumb' => 1,
'transform' => 0,
),
),
),
'access' => array(
'plugins' => array(
0 => array(
'name' => 'term_vocabulary',
'settings' => array(
'machine_name' => array(
'catalog' => 'catalog',
),
),
'context' => 'term',
'not' => FALSE,
),
),
'logic' => 'and',
),
);
$path_breadcrumb->weight = -99;
$path_breadcrumb = new stdClass();
$path_breadcrumb->api_version = 1;
$path_breadcrumb->machine_name = 'product';
$path_breadcrumb->name = 'Product';
$path_breadcrumb->path = 'node/%nid';
$path_breadcrumb->data = array(
'titles' => array(
0 => 'Каталог товаров',
1 => '%nid:field-catalog:parents-all:3',
2 => '%nid:field-catalog:parents-all:2',
3 => '%nid:field-catalog:parents-all:1',
4 => '%nid:field-catalog:parents-all:0',
5 => '!page_title',
),
'paths' => array(
0 => 'catalog/all',
1 => '%nid:field-catalog:parents-all:3:url',
2 => '%nid:field-catalog:parents-all:3:url',
3 => '%nid:field-catalog:parents-all:1:url',
4 => '%nid:field-catalog:parents-all:0:url',
5 => '<none>',
),
'home' => 1,
'translatable' => 0,
'arguments' => array(
'nid' => array(
'position' => 1,
'argument' => 'entity_id:node',
'settings' => array(
'identifier' => 'Содержимое: ID',
),
),
),
'access' => array(
'plugins' => array(
0 => array(
'name' => 'node_type',
'settings' => array(
'type' => array(
'product' => 'product',
),
),
'context' => 'nid',
'not' => FALSE,
),
),
'logic' => 'and',
),
);
$path_breadcrumb->weight = 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment