Version 5.6.0.2 Breadcrumb Issue

Permalink 1 user found helpful
In previous versions, my breadcrumbs looked like this:
Home > About > Contact Us
..and had the "greater than" symbol as the separator.

In the new version, the previous breadcrumbs now look like this:
Home > AboutContactUs
...without the separator and spacing.

Does anyone know of a quick fix for this?

Thanks in advance...
Karey

kcummins
 
adajad replied on at Permalink Reply
adajad
I have just found out that bug was introduced in v 5.6, but it hasn't been reported before. Please confirm the bug here: http://www.concrete5.org/index.php?cID=390210...

The following will solve your problem IF you set the Auto-Nav to display ALL pages (and not below a particular page).

Copy 'root/concrete/blocks/autonav/templates/breadcrumb.php' to 'root/blocks/autonav/templates/breadcrumb.php' (create the folders as necessary).

Open your newly created breadcrumb.php and change the following (line 5):
if (!$ni->isFirst) {

into
if (!$ni->isHome) {


Your complete breadcrumb.php should now look like:
<?php  defined('C5_EXECUTE') or die(_("Access Denied."));
$navItems = $controller->getNavItems();
foreach ($navItems as $ni) {
   if (!$ni->isHome) {
      echo ' <span class="ccm-autonav-breadcrumb-sep">&gt ;</span> ';
   }
   if ($ni->isCurrent) {
      echo $ni->name;
   } else {
      echo '<a href="' . $ni->url . '" target="' . $ni->target . '">' . $ni->name . '</a>';
   }
}


Note that I had to insert a space between &gt and ; in the code block above. Please remove that space if you copy the entire block.
adajad replied on at Permalink Reply
adajad
I have updated the bug report with a simple solution to have breadcrumbs work even under particular pages.

Please see this post: http://www.concrete5.org/developers/bugs/5-6-0-2/core-auto-nav-brea...
andrew replied on at Permalink Reply
andrew
Thanks for the bug report. Sorry for the late reply. This has been addressed in github and will be released in 5.6.1