Bonjour,
Une question de néophyte ou presque...
Je voudrais en haut des pages mettre un repère du type :
Accueil -> Rubrique -> Rubrique -> Rubrique
Quelqu'un aurait-il la formule toute faite ?
D'avance merci ![]()
Voldor
From mjaber@centralpay.net Wed Jan 8 09:59:29 2003
Return-Path: <mjaber@centralpay.net>
Received: from mail1.webindustrie.com (mail.mond.net [212.234.186.100])
by miel.brainstorm.fr (Postfix) with ESMTP id 69E271C30B
for <spip@rezo.net>; Wed, 8 Jan 2003 09:59:28 +0100 (CET)
Received: (qmail 19980 invoked by uid 1006); 8 Jan 2003 09:04:01 -0000
Received: from unknown (HELO cp_mc) ([212.234.186.126])
(envelope-sender <mjaber@centralpay.net>)
by 10.0.186.69 (qmail-ldap-1.03) with SMTP
for <spip@rezo.net>; 8 Jan 2003 09:04:00 -0000
Subject: Re: [Spip] Balise Rubrique
From: Mourad Jaber <mjaber@centralpay.net>
To: "Spip@Rezo. Net" <spip@rezo.net>
In-Reply-To: <BA40D811.115C2%philippe.auriol@wanadoo.fr>
References: <BA40D811.115C2%philippe.auriol@wanadoo.fr>
Content-Type: multipart/alternative; boundary="=-lzX/U1W76PU6LVAKLnjh"
X-Mailer: Evolution/1.0.2-5mdk
Date: 08 Jan 2003 10:12:33 +0100
Message-Id: <1042017154.12998.1.camel@cp_mc>
Mime-Version: 1.0
X-Virus-Scanned: by AMaViS perl-11
X-BeenThere: spip@rezo.net
X-Mailman-Version: 2.1rc1+
Precedence: list
List-Id: SPIP : questions/reponses <spip.rezo.net>
List-Unsubscribe: <http://listes.rezo.net/mailman/listinfo/spip>,
<mailto:spip-request@rezo.net?subject=unsubscribe>
List-Archive: <Discuter chez rezo.net;
List-Post: <mailto:spip@rezo.net>
List-Help: <mailto:spip-request@rezo.net?subject=help>
List-Subscribe: <http://listes.rezo.net/mailman/listinfo/spip>,
<mailto:spip-request@rezo.net?subject=subscribe>
X-List-Received-Date: Wed, 08 Jan 2003 08:59:29 -0000
Status: O
Content-Length: 9332
Lines: 172
--=-lzX/U1W76PU6LVAKLnjh
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Magnifique !!! comme quoi, le scroll des pages d'aide, c'est mieux
jusqu'au bout pour avoir les r=E9ponses....
Merci beaucoup
@ +
Le mar 07/01/2003 =E0 19:16, Philippe Auriol a =E9crit :
Le 7/01/03 19:12, =AB oOo-- DoriaN --oOo =BB <dorian@3studio.org> a =E9=
crit :
=20
> Mourad Jaber ---->
>=20
>> J'ai trouv=E9, une solution :
>>=20
>> <BOUCLE_GdTitre(RUBRIQUES){id_parent=3D0}{id_secteur}>
>> <td width=3D"346">#LOGO_RUBRIQUE</td>
>> </BOUCLE_GdTitre>
>>=20
>> Je ne sais pas si c'est top mais =E7a fait pour l'instant ce que je
>> voulais.=20
>> Par contre, comme une solution apporte d'autres questions, je voudra=
is
>> savoir s'il est possible d'enum=E9rer des articles ou rubrique sur 2
>> colonnes ?
>> comment faire un if pour pouvoir faire un coup un <TD>, au suivant u=
n
>> <TR><TD> dans la m=EAme boucle ?
>> Est-ce possible avec spip ou faut-il le faire =E0 la main ?
>> Merci
>=20
> Je pense que tu devrais plut=F4t t'inspirer des squelettes par d=E9fa=
ut et/ou du
> tutorial sur uzine pour chopper l'esprit de spip, qui, par exemple, n=
e
> fonctionne ps avec des if... else mais avec des boucles et des affich=
ages
> conditionnels... un bon coup d'oeil dans la doc te permettras de mieu=
x
> suivre et nous on pourra t'aider facilement (voir m=EAme comprendre t=
a
> question...)
=20
If=20
=20
JE!:
([uZine 3] Les critères communs à toutes les boucles);
=20
Else(
"{a/b} o=F9 a et b sont des chiffres. Ce crit=E8re permet d'afficher un=
e partie
a (proportionnellement) des r=E9sultats en fonction d'un nombre de
=AB tranches =BB b.=20
=20
Par exemple : {1/3} affiche le premier tiers des r=E9sultats. Ce crit=
=E8re est
surtout utile pour pr=E9senter des listes sur plusieurs colonnes. Pour =
obtenir
un affichage sur deux colonnes, il suffit de cr=E9er une premi=E8re bou=
cle,
affich=E9e dans une case de tableau, avec le crit=E8re {1/2} (la premi=
=E8re moiti=E9
des r=E9sultats), puis une seconde boucle dans une seconde case, avec l=
e
crit=E8re {2/2} (la seconde moiti=E9 des r=E9sultats).
");
=20
'nuit ![]()
=20
--=20
Dr Philippe Auriol, allergologue
http://www.allergique.org/ Le Monde des Allergies
http://www.weballergies.com/ L'allergie en fiches
http://chercher.weballergies.com/ Chercher l'allergie sur le net
=20
_______________________________________________
liste spip
spip@rezo.net - d=E9sabonnement : spip-off@rezo.net
Infos et archives : http://listes.rezo.net/mailman/listinfo/spip
Documentation de SPIP : http://www.uzine.net/spip
=20
=20
--=-lzX/U1W76PU6LVAKLnjh
Content-Type: text/html; charset=utf-8
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/1.0.1">
</HEAD>
<BODY>
Magnifique !!! comme quoi, le scroll des pages d'aide, c'est mieux jusqu'au bout pour avoir les réponses....
<BR>
Merci beaucoup
<BR>
@ +
<BR>
<BR>
Le mar 07/01/2003 à 19:16, Philippe Auriol a écrit :
<BLOCKQUOTE>
<PRE><FONT COLOR="#737373"><FONT SIZE="3"><I>Le 7/01/03 19:12, « oOo-- DoriaN --oOo » <dorian@3studio.org> a écrit :</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Mourad Jaber ----></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>>> J'ai trouvé, une solution :</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>>> <BOUCLE_GdTitre(RUBRIQUES){id_parent=0}{id_secteur}></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>>> <td width="346">#LOGO_RUBRIQUE</td></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>>> </BOUCLE_GdTitre></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>>> Je ne sais pas si c'est top mais ça fait pour l'instant ce que je</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>>> voulais. </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>>> Par contre, comme une solution apporte d'autres questions, je voudrais</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>>> savoir s'il est possible d'enumérer des articles ou rubrique sur 2</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>>> colonnes ?</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>>> comment faire un if pour pouvoir faire un coup un <TD>, au suivant un</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>>> <TR><TD> dans la même boucle ?</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>>> Est-ce possible avec spip ou faut-il le faire à la main ?</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>>> Merci</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Je pense que tu devrais plutôt t'inspirer des squelettes par défaut et/ou du</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> tutorial sur uzine pour chopper l'esprit de spip, qui, par exemple, ne</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> fonctionne ps avec des if... else mais avec des boucles et des affichages</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> conditionnels... un bon coup d'oeil dans la doc te permettras de mieux</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> suivre et nous on pourra t'aider facilement (voir même comprendre ta</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> question...)</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>If </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>JE!:</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>([uZine 3] Les critères communs à toutes les boucles);</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Else(</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>"{a/b} où a et b sont des chiffres. Ce critère permet d'afficher une partie</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>a (proportionnellement) des résultats en fonction d'un nombre de</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>« tranches » b. </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Par exemple : {1/3} affiche le premier tiers des résultats. Ce critère est</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>surtout utile pour présenter des listes sur plusieurs colonnes. Pour obtenir</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>un affichage sur deux colonnes, il suffit de créer une première boucle,</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>affichée dans une case de tableau, avec le critère {1/2} (la première moitié</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>des résultats), puis une seconde boucle dans une seconde case, avec le</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>critère {2/2} (la seconde moitié des résultats).</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>");</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>'nuit ;-)</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>-- </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Dr Philippe Auriol, allergologue</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>http://www.allergique.org/ Le Monde des Allergies</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>http://www.weballergies.com/ L'allergie en fiches</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>http://chercher.weballergies.com/ Chercher l'allergie sur le net</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>_______________________________________________</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>liste spip</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>spip@rezo.net - désabonnement : spip-off@rezo.net</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Infos et archives : http://listes.rezo.net/mailman/listinfo/spip</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Documentation de SPIP : http://www.uzine.net/spip</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>
--=-lzX/U1W76PU6LVAKLnjh--