Hey folks,
in this forum there`re a lot of threads about problems with the breadcrumbs. Many people tried to customize those links to thier own purpose, but it was always a bit difficult. I`m also one of those people and on my "experiments" with drupal I tried something different.
Currently I`m trying to make my own theme and during the developement I got the idea to "hard code" the breadcrumbs for certian areas the user will be able to visit. For example I got a few custom overview pages, so my breadcrumb shows something like "overview > current area"; without the custom homelink. I used a little php-code that looks like follows:
<?php if($node->type == "flexinode-1"): ?>
» <a href="?q=content">Content</a> » <a href="?q=content_rezensionen">Rezensionen</a> » <a href="?q=content_rezensionen_videospiele">Videospiele</a>
<?php elseif($node->type == "story"): ?>
» <a href="?q=content">Content</a> » <a href="?q=content_storys">Storys</a> » <?php unset ($output); print $breadcrumb ?>
<?php endif ?>
As you can see the the code outputs a custom htm-code plus the breadcrumb/title, so I got the possiblity to define a custom navigation-tree for the whole page.
But als always, there`s a problem with it ;) The code above works fine with pages that got no another php-code in it, but when I use one or more php-snippets on a page it won`t work. For example: I use some php-snippets from the handbook to output some custom lists of the content. Those snippets work fine, but the "trick" with the above custom navigation-tree doesn`t work anymore and just outputs the $breadcrumb without the code before. I`ve also tried to put