Jump to content

[SOLVED]breadcrumb


Recommended Posts

It is the getPath() function in classes/Tools.php that creates the category breadcrumb. If you want to hide a category from it, you'll need to change lines 564-567:

if ($path != $category_name)
   $path = 'getCategoryLink($category)).'">'.htmlentities($category_name, ENT_NOQUOTES, 'UTF-8').' '.$pipe.' '.$path;
else
   $path = ($linkOntheLastItem ? 'getCategoryLink($category)).'">' : '').htmlentities($path, ENT_NOQUOTES, 'UTF-8').($linkOntheLastItem ? '' : '');



to:

if ($id_category != 6 AND $id_category != 7)
{
   if ($path != $category_name)
       $path = 'getCategoryLink($category)).'">'.htmlentities($category_name, ENT_NOQUOTES, 'UTF-8').' '.$pipe.' '.$path;
   else
       $path = ($linkOntheLastItem ? 'getCategoryLink($category)).'">' : '').htmlentities($path, ENT_NOQUOTES, 'UTF-8').($linkOntheLastItem ? '' : '');
}



Change 6 and 7 to the IDs of the categories you want hidden. You can add as many as you want using AND.

Link to comment
Share on other sites

  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...