Advertisement
Guest User

Path Breadcrumbs Product

a guest
Jul 24th, 2013
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. $path_breadcrumb = new stdClass();
  2. $path_breadcrumb->api_version = 1;
  3. $path_breadcrumb->machine_name = 'product';
  4. $path_breadcrumb->name = 'Product';
  5. $path_breadcrumb->path = 'node/%node';
  6. $path_breadcrumb->data = array(
  7. 'titles' => array(
  8. 0 => 'Каталог',
  9. 1 => '%node:field-category:parent:name',
  10. 2 => '%node:field-category:name',
  11. 3 => '%node:title',
  12. ),
  13. 'paths' => array(
  14. 0 => 'katalog',
  15. 1 => '%node:field-category:parent:url',
  16. 2 => '%node:field-category:url',
  17. 3 => '<none>',
  18. ),
  19. 'home' => 1,
  20. 'translatable' => 0,
  21. 'arguments' => array(
  22. 'node' => array(
  23. 'position' => 1,
  24. 'argument' => 'entity_id:node',
  25. 'settings' => array(
  26. 'identifier' => 'Node: ID',
  27. ),
  28. ),
  29. ),
  30. 'access' => array(
  31. 'plugins' => array(
  32. 0 => array(
  33. 'name' => 'node_type',
  34. 'settings' => array(
  35. 'type' => array(
  36. 'product' => 'product',
  37. ),
  38. ),
  39. 'context' => 'node',
  40. 'not' => FALSE,
  41. ),
  42. ),
  43. 'logic' => 'and',
  44. ),
  45. );
  46. $path_breadcrumb->weight = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement