Une grosse modif pour prendre en compte les rubriques dont l’article par defaut se trouve sur un article d’une sous-rubrique (ex rubrique mes donnees)
rubrique.html :
[(#REM) On redirige si il existe un article par defaut]
<BOUCLE_rubrique_parent(RUBRIQUES) {id_rubrique}>
<BOUCLE_rubrique_enfants(RUBRIQUES) {id_parent=#ID_RUBRIQUE}>
<BOUCLE_article_defaut2(MOTS) {id_rubrique}{id_groupe=16}>
<?php
header( "Location: http://".$_SERVER["HTTP_HOST"]."/spip.php?article#TITRE");
exit();
?>
</BOUCLE_article_defaut2>
</BOUCLE_rubrique_enfants>
</BOUCLE_rubrique_parent>
<B_article_defaut>
<BOUCLE_article_defaut(MOTS) {id_rubrique}{id_groupe=16}>
<?php
header( "Location: http://".$_SERVER["HTTP_HOST"]."/spip.php?article#TITRE");
exit();
?>
</BOUCLE_article_defaut>
</B_article_defaut>Pour l’annuaire, j’ai une rubrique (liste des diplômés) qui est ouverte à tous mais une fois connecté, je veux la rendre non visible.
Je n’ai pas le choix, j’utilise du PHP dans article.html
if(($GLOBALS["auteur_session"]["statut"]!="")&&($GLOBALS['id_article']==23825)) {
header( "Location: http://".$_SERVER["HTTP_HOST"]."/spip.php?article25244");
exit;
}
