dasteralo Posted September 4, 2017 Share Posted September 4, 2017 Bonjour à tous,J'aurai besoin de votre aide pour désactiver les liens du Breadcrumb.Je souhaite conserver le chemin mais ne pas activer les liens.J'ai donc créée un fichier Tools.php dans override/classes et modifié le code de cette façon: $full_path .= (($n < $n_categories || $link_on_the_item) ? '<a href="'.Tools::safeOutput($context->link->getCategoryLink((int)$category['id_category'], $category['link_rewrite'])).'" title="'.htmlentities($category['name'], ENT_NOQUOTES, 'UTF-8').'" data-gg="">' : ''). htmlentities($category['name'], ENT_NOQUOTES, 'UTF-8'). (($n < $n_categories || $link_on_the_item) ? '</a>' : ''). (($n++ != $n_categories || !empty($path)) ? '<span class="navigation-pipe">'.$pipe.'</span>' : ''); devient $full_path .= (($n < $n_categories || $link_on_the_item) ? '' : ''). htmlentities($category['name'], ENT_NOQUOTES, 'UTF-8'). (($n < $n_categories || $link_on_the_item) ? '' : ''). (($n++ != $n_categories || !empty($path)) ? '<span class="navigation-pipe">'.$pipe.'</span>' : ''); et if ($path != $category->name) { $full_path .= '<a href="'.Tools::safeOutput($category_link).'" data-gg="">'.htmlentities($category->name, ENT_NOQUOTES, 'UTF-8').'</a><span class="navigation-pipe">'.$pipe.'</span>'.$path; } else { $full_path = ($link_on_the_item ? '<a href="'.Tools::safeOutput($category_link).'" data-gg="">' : '').htmlentities($path, ENT_NOQUOTES, 'UTF-8').($link_on_the_item ? '</a>' : ''); } devient if ($path != $category->name) { $full_path .= ''.htmlentities($category->name, ENT_NOQUOTES, 'UTF-8').'<span class="navigation-pipe">'.$pipe.'</span>'.$path; } else { $full_path = ($link_on_the_item ? '' : '').htmlentities($path, ENT_NOQUOTES, 'UTF-8').($link_on_the_item ? '' : ''); } Ça me parait classique mais rien ne se passe, les liens sont toujours actifs. J'ai pourtant vider mon dossier cache/smarty/compile J'ai faux ou? Quelqu'un aurait il une idée, une piste, une astuce...? D'avance merci Link to comment Share on other sites More sharing options...
dasteralo Posted September 4, 2017 Author Share Posted September 4, 2017 Oops!!! Autant pour moi, ça fonctionne.Certainement un problème avec le cache :rolleyes:Merci! Link to comment Share on other sites More sharing options...
doekia Posted September 4, 2017 Share Posted September 4, 2017 oui rien a voir avec cache/smarty/compile, mais plus avec cache/classes_index.php, le plus simple, la gomme (vider le cache) dans Preférences > Performances Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now