1.9.2 meme_parent

Soit un squelette rubrique-19. html et article-19.html
Dans les deux cas:
#SET{id_art,#ENV{id_art}}
    #SET{id_rub,#ID_RUBRIQUE}
<BOUCLE_menu_rubriques(RUBRIQUES){meme_parent}{par titre}{tout}{lang}>
<dd><a href="#URL_RUBRIQUE>[(#ID_RUBRIQUE|=={#GET{id_rub}}|?{#LOGO_RUBRIQUE_SURVOL,#LOGO_RUBRIQUE})]</a></dd>
</BOUCLE_menu_rubriques>

Dans la rubrique j'affiche bien les logos des rubriques de même niveau et dans la page article j'affiche le logo de la rubrique racine..

Pourquoi??

Merci

BB

Je suppose que pour un article, {meme_parent} renvoie 0
En fait pour un article il suffit d’utiliser {id_rubrique} qui signifie la même chose dans ce contexte.

Paul (5eBleu)

2008/12/15 Bernard Blazin <bernard.blazin@free.fr>

Soit un squelette rubrique-19. html et article-19.html
Dans les deux cas:
#SET{id_art,#ENV{id_art}}
#SET{id_rub,#ID_RUBRIQUE}
<BOUCLE_menu_rubriques(RUBRIQUES){meme_parent}{par titre}{tout}{lang}>

spip@rezo.net - désabonnement : spip-off@rezo.net

Infos et archives : http://listes.rezo.net/mailman/listinfo/spip

Documentation de SPIP : http://www.spip.net/

irc://irc.freenode.net/spip ou http://embed.mibbit.com/?server=irc.freenode.net&channel=%23spip