Jump to content

Recommended Posts

j'ai le code suivant pour affiché un menu :

// filter the categories that the user is allowed to see and browse
if (!empty($is_intersected)) {
$this->_menu .= '<li'.(count($children) && ($depth == 2) ? ' class="hasChildren"' : '').'>';
$this->_menu .= '<a href="'.htmlentities($category_link).'">'.$category->name.'</a>'.(count($children) ? '<a href="#" class="opener"></a>' : '');
if (count($children)) {
$this->_menu .= '<ul class="main-section-sublinks level_'.$depth.'">';
$y=0;
foreach ($children as $child) {
$this->getCategory((int)$child['id_category'], $depth+1, (int)$id_lang, (int)$child['id_shop']);
$y++;
}
$this->_menu .= '</ul>';
}
$this->_menu .= '</li>';
}
} 

 

pour des raisons de fonctionnement j'ai du mettre des chiffres devant le nom de la catégorie, ce qui me donne ça :

1526 - nom de cat

Le code ci dessus m'affiche donc 1526 - nom de cat dans le menu
Je voudrais retirer 1526 - pour afficher uniquement le nom de la cat...

des idées ?

merci

 

Link to comment
Share on other sites

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...