Vox Populi(x) forum

Alexandria Book Library => Supporto (Support) => Topic started by: anunja on 18 June 2016, 17:36:42

Title: Breadcrumb problem
Post by: anunja 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/ (http://u0201573.isp.regruhosting.ru/)
Title: Re: Breadcrumb problem
Post by: anunja 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:
<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?
Title: Re: Breadcrumb problem
Post by: federica 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