2012-05-10, 21:35:45
Hi there,
In my current project I haved used a second menu, next to the main pulldown menu. To enable this I used the code suggested for this on Mvlcek's website
ie.
Works perfectly.
Then the client asked for a breadcrumb, for that I used Martin's other solution:
Works perfectly too.
However, when clicking through the site I noticed that the parent page needed for the 2nd menu is also shown in the browsers address bar, plus the name of that page shows up in the breadcrumb.
Basically this is totally logical, since these page were added using the parent/child structure but is there a way not not display the parent page of the 2nd menu in both the address bar as well as the breadcrumb?
In my current project I haved used a second menu, next to the main pulldown menu. To enable this I used the code suggested for this on Mvlcek's website
ie.
Code:
<?php
$bc = return_i18n_breadcrumbs(return_page_slug());
get_i18n_navigation($bc[0]['url']=='menu1'?return_page_slug():'menu1',1,99);
?>
Works perfectly.
Then the client asked for a breadcrumb, for that I used Martin's other solution:
Code:
<a href="<?php echo find_url('index',null); ?>">home</a>
<?php get_i18n_breadcrumbs(return_page_slug()); ?>
Works perfectly too.
However, when clicking through the site I noticed that the parent page needed for the 2nd menu is also shown in the browsers address bar, plus the name of that page shows up in the breadcrumb.
Basically this is totally logical, since these page were added using the parent/child structure but is there a way not not display the parent page of the 2nd menu in both the address bar as well as the breadcrumb?