Author Topic: Breadcrumb problem  (Read 796 times)

Offline anunja

  • Coccinella
  • *
  • Posts: 7
  • Karma: +0/-0
Breadcrumb problem
« on: 18 June 2016, 17:36:42 »
Hallo, dear Federica!
My breadcrumbs work in a strange way.  When I am inside the category 1 I've got the path: Back<Cat1 but both "Back" and "Cat1" links  to category 1. I want to get rid of this duplicated structure. "BACK" should link to the list of categories!
http://u0201573.isp.regruhosting.ru/

Offline anunja

  • Coccinella
  • *
  • Posts: 7
  • Karma: +0/-0
Re: Breadcrumb problem
« Reply #1 on: 20 June 2016, 16:40:26 »
Well, I solved the problem. I edited file helpers/icon.php and commented out a part of code:
Code: [Select]
<ul class="breadcrumb">
<?php /** 
 <li><a class="pathway" href="<?php echo JRoute::_(AbookHelperRoute::getCategoryRoute("0:root"));?>
"><?php echo JText::_('COM_ABOOK_BACK_TO_TOP'); ?></a> <?php echo '&raquo;';?></li> */
?>
        <?php
        
$n=count($category_parent);
if ($n>=1){
         foreach ($category_parent as $k => $catname){
        
         echo '<li><a class="pathway" href="' .$catname['link'].'">' .$catname['title'] .'</a></li>';
                 if ($k!=$n-1) echo ' &raquo; ';
        
}
}
        
?>

</ul>
I think it looks better now?

Offline federica

  • Amministratore
  • Delfino
  • *****
  • Posts: 1.026
  • Karma: +1/-0
Re: Breadcrumb problem
« Reply #2 on: 25 June 2016, 15:52:10 »
Hi anunja,
you are right.
if you publish a "category" menu the path is wrong. but If you publish a "Categories" menu the path is ok.
I will try to solve the problem
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
http://www.antivirushelp.it
stacca la spina!