#Lister les articles des cat├ęgories actives #http://www.ecyseo.net/article/27/astuce-pluxml-afficher-les-articles-associes-a-une-categorie-sous-le-nom-de-celle-ci.html <ul> <?php ob_start(); $plxShow->catList(''," <li><a id=\"toggler-#cat_id\" href=\"#cat_url\" onclick=\"toggleDiv('cat-#cat_id','toggler-#cat_id','+ #cat_name','- #cat_name');return false;\" title=\"#cat_name\">+ #cat_name</a> (#art_nb) <ul id=\"cat-#cat_id\" class=\"hide\"> [#cat_id] </ul> </li>"); $list = ob_get_clean(); preg_match_all('!\[([a-zA-Z0-9-_])*\]!',$list,$match); $art = array(); foreach ($match[1] as $key => $value) { ob_start(); $plxShow->lastArtList('<li><a href="#art_url">#art_title</a> (#art_nbcoms)</li>', 5, $value,''); $art[$key] = ob_get_clean(); } foreach ($match[0] as $key => $value) { $list = str_replace(array('&#039;',$value),array('\'',$art[$key]),$list); } echo $list; ?> </ul>