i also wrote some php to create breadcrumbs based on what’s in the addressbar. i included that php file in my header template which contains logo and main horizontal nav in addition to the breadcrumbs. i got this working without any plugins or other stuff you’re talking about, straight “outta the box”. dont understand what’s so hard about it but im probably missing something
if you’d like to see the code feel free to drop me a mail.
I had my reasons for taking an alternative approach.. carry on reading if you are interested to hear what they were.
On the site that I’m working on there were instances where the address bar didn’t relate to an actual physical expression engine page e.g.:
<a href="http://www.mydomain.com/index.php/clients/portfolio/isas-and-sipps/isas/">http://www.mydomain.com/index.php/clients/portfolio/isas-and-sipps/isas/</a>
Breadcrumbs for that would look like:
Home > Clients > Portfolio > Isas & Sipps > Isas
You’d expect that clicking on the ‘Isas & Sipps’ crumb would take you to the Isas & Sipps index page. There isn’t one! (Clients wanted to retain URLs exactly as per existing static site - even after my recommendations.)
So I wanted to use PHP header() function to redirect the user to the relevant existing page and to do that requires calling it before any HTML is output to the browser. The site is very large and the pages had already been created so I created a ‘breadcrumb-top’ template to embed at the top of all my page templates to look for any URLs which needed to be redirected. Because the breadcrumb links were created inside this template, I needed a way to get them out hence the use of Victor’s Cacher plugin.
I’m relatively new to EE but have been developing PHP apps for nearly 5 years now so I tend to still approach EE problems from an experienced PHP developer’s point of view.