2014-04-23, 16:44:17
(2014-04-23, 07:38:02)Superbobo Wrote: this guide http://mvlcek.bplaced.net/get-simple/mul...v-multiple I created 2 menu - menu1 and menu2. If I turn on the fancy URLs, breadcrumbs like this: "MyWeb >> menu1 >> item1-1" and URL myweb/menu1/item1-1 but I needed it to be "MyWeb >> item-1-1" and URL myweb/item1-1.
You can use return_i18n_breadcrumbs and display the breadcrumbs manually. The following is a copy of the method I18nNavigationFrontend::outputBreadcrumbs, but removes the first element with array_shift:
Code:
$breadcrumbs = return_i18n_breadcrumbs($slug);
array_shift($breadcrumbs);
foreach ($breadcrumbs as &$item) {
$text = $item['menu'] ? $item['menu'] : $item['title'];
$title = $item['title'] ? $item['title'] : $item['menu'];
$url = function_exists('find_i18n_url') ? find_i18n_url($item['url'],$item['parent']) : find_url($item['url'],$item['parent']);
echo ' » <span class="breadcrumb"><a href="' . $url . '" title="' .
strip_quotes($title) . '">' . $text . '</a></span>';
}