PDA

View Full Version : Edit breadcrumb on a custom vb4 page.


NickyDee
12-23-2010, 06:44 PM
So I would like to edit the order of the breadcrumb on a custom vb4 page. Right now i'm using this code on my PHP page to generate the navbits...

$navbits = construct_navbits(array('' => 'page_name'));

Which produces a breadcrumb like [Home Icon] > [page_name]

I would like to change it so instead it looks like [Home Icon] > [other_page] > [page_name]

Any ideas how?

NickyDee
12-27-2010, 05:32 PM
any idea anyone?

CroNiX
12-28-2010, 12:28 AM
$navbits_array = array(
'http://yoursite.com/other_page' => 'Other Page',
'' => 'This Page' //last link generally isn't active, so no url
);
$navbits = construct_navbits($navbits_array);

just add a new $url => title to the navbits array

NickyDee
12-28-2010, 12:46 PM
Thanks! works perfectly - obvious now its been pointed out :)