rép : [Spip] Question boucle

Salut,
voila déjà un bout de réponse "spip" :

<BOUCLE_la_rubrique_en_gras(RUBRIQUES){id_rubrique}{doublons}>
      <b>#TITRE</b>
     <BOUCLE_les_autres(RUBRIQUES){id_parent=0}{doublons}>
        #TITRE
     </BOUCLE_les_autres>
</BOUCLE_la_rubrique_en_gras>
Autrement, pour avoir celle en gras classée avec les autres je vois comme ça e, dehors d'un bout de php. J'y réfléchit.

@+

Le dimanche, 25 mai 2003, à 13:48 Europe/Paris, Frederic a écrit :

Bonjour,

Désolé pour cette question mais j'ai vraiment du mal à penser "boucles
SPIP".

Je butte sur un problème qui parait simple : afficher la liste des rubriques
dans l'ordre alphabétique mais différencier la rubrique courrante (en la
mettant en gras par exemple).

Voici ma boucle

<BOUCLE_haut(RUBRIQUES){id_parent=0}{par titre}{"<BR>"}>
<A HREF="#URL_RUBRIQUE"><FONT COLOR="#000000"
FACE="arial,helvetica,sans-serif" SIZE=2>#TITRE</FONT></A>
</BOUCLE_haut>

Je ne vois pas comment traîter l'exception de la rubrique courante.
Est-ce qu'une âme charitable pourrait m'orienter svp

Encore merci

Fred

_______________________________________________
liste spip
spip@rezo.net - désabonnement : spip-off@rezo.net
Infos et archives : http://listes.rezo.net/mailman/listinfo/spip
Documentation de SPIP : http://www.uzine.net/spip

J'ai pas testé, mais ca devrait marcher.

<BOUCLE_this(RUBRIQUES){id_rubrique}>
<?php
     $id_sector = #ID_SECTEUR;
?>
</BOUCLE_this>

<BOUCLE_haut(RUBRIQUES){id_parent=0}{par titre}{"<BR>"}>
<?php
     if($id_sector!= #ID_SECTEUR)
    {
        echo '<A HREF="#URL_RUBRIQUE"><FONT COLOR="#000000"
FACE="arial,helvetica,sans-serif" SIZE=2>#TITRE</FONT></A>';
    }
    else
    {
        echo '<FONT COLOR="#000000" FACE="arial,helvetica,sans-serif"
SIZE=2><b>#TITRE</b></FONT>';
    }
?>
</BOUCLE_haut>

atur

Bonjour,

Désolé pour cette question mais j'ai vraiment du mal à penser "boucles
SPIP".

Je butte sur un problème qui parait simple : afficher la liste des
rubriques
dans l'ordre alphabétique mais différencier la rubrique courrante (en
la
mettant en gras par exemple).

Voici ma boucle

<BOUCLE_haut(RUBRIQUES){id_parent=0}{par titre}{"<BR>"}>
<A HREF="#URL_RUBRIQUE"><FONT COLOR="#000000"
FACE="arial,helvetica,sans-serif" SIZE=2>#TITRE</FONT></A>
</BOUCLE_haut>

Je ne vois pas comment traîter l'exception de la rubrique courante.
Est-ce qu'une âme charitable pourrait m'orienter svp

Encore merci

Fred

_______________________________________________
liste spip
spip@rezo.net - désabonnement : spip-off@rezo.net
Infos et archives : http://listes.rezo.net/mailman/listinfo/spip
Documentation de SPIP : http://www.uzine.net/spip

_______________________________________________
liste spip
spip@rezo.net - désabonnement : spip-off@rezo.net
Infos et archives : http://listes.rezo.net/mailman/listinfo/spip
Documentation de SPIP : http://www.uzine.net/spip