Breadcrumb problem

Started by anunja, 18 June 2016, 17:36:42

Previous topic - Next topic
A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

anunja

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/

A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

anunja

Well, I solved the problem. I edited file helpers/icon.php and commented out a part of code:
<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?

federica

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.
Informatizzati [url="https://informatizzati.org"]https://informatizzati.org[/url]
Stacca la spina [url="https://disconnessi.org"]https://disconnessi.org[/url]