e.g., give me the correct secteur id and, however, the titre of the current rubrique what is of course only the secteur titre if this is the first rubrique above the root. (Probably I am confused about rubrique, secteur, and sector.) What I need throughout the site are the names of the "1st level" above the root sections.
id_secteur is available, like id_rubrique, for articles and sections :
So you can directly do
<BOUCLE1(RUBRIQUES){id_secteur}> #ID_RUBRIQUE, #TITRE
</BOUCLE1>
You can have a look at the reference of SPIP here :
e.g., give me the correct secteur id and, however, the titre of the
current rubrique what is of course only the secteur titre if this is
the first rubrique above the root. (Probably I am confused about
rubrique, secteur, and sector.) What I need throughout the site are
the names of the "1st level" above the root sections.
Thanks. That works in the way that it prints the titre of the current secteur. I don't know however how to use this string in an html link. E.g,. say <link rel="stylesheet" href="http://<here_goes_the_secteur_titre>/style.css" /> should link css from a different domain that has the same name as my current secteur.
On 2006 Oct 9, at 1:00, Gilles Vincent wrote:
oops! Sorry, I' made a mistake (my loop returned of course ALL sectors)
This should work :
<BOUCLE_root(RUBRIQUES){id_rubrique=#ID_SECTEUR}> #ID_RUBRIQUE, #TITRE
</BOUCLE_root>
or if you want to avoid confusion in your templates :
<BOUCLE_root(RUBRIQUES){id_rubrique=#ID_SECTEUR}> #_root:ID_RUBRIQUE, #_root:TITRE
</BOUCLE_root>
> id_secteur is available, like id_rubrique, for articles and sections :
> So you can directly do
> <BOUCLE1(RUBRIQUES){id_secteur}>
> #ID_RUBRIQUE, #TITRE
> </BOUCLE1>
>
> hope it helps
Thanks. However, not exactly what I am looking for. This boucle gives
me a bunch of numbers and titels. I need only throughout the site one
title: the title of the first rubrique (guess u call it "sector")
above the root where the current article or subsection is in. I'll
try to manage three sites with one spip installation. The first
rubriques have the names of these sites. They are the sites,
actually. I need these name as part of the corresponding address or
path to import stuff (styles e.g.) for this sector (my 1st, 2nd, or
3rd site).
I need only throughout the site one
title: the title of the first rubrique (guess u call it "sector")
above the root where the current article or subsection is in. I'll
try to manage three sites with one spip installation.
Since the version 1.9, it's possible (I'm using it) to install several
sites on a unique spip kernel. It's more or less explained here (in
french) : Un noyau SPIP 1.9, plusieurs sites ! - SPIP-Contrib
I can detail one method if you precise the structure of your sites..
You can also use a "template switcher" witch is available as plugin : http://zine.spip.org/spip.php?article8
(but here there won't be a separation of the data)
There is also a method of syndication by keywords. It was explained
for the old versions of Spip here : http://www.spip-contrib.net/syndiquer-par-mot-clef
For spip 1.9, the documentation is available here : SPIP-Contrib
(needs an account on spip-contrib -- it's free
.Gilles
---
The first
rubriques have the names of these sites. They are the sites,
actually. I need these name as part of the corresponding address or
path to import stuff (styles e.g.) for this sector (my 1st, 2nd, or
3rd site).
If I understand, you want to save the value of your sector title, and
use it elsewhere in your templates.
For this, you can use the "quite not really documented" keyworks : #GET and #SET (cf Discuter chez rezo.net for an
explanation)
-------------------------
<BOUCLE_root(RUBRIQUES){id_rubrique=#ID_SECTEUR}>
[(#SET{site_url,#TITRE})]
</BOUCLE_root>
<link rel="stylesheet" href="http://[(#GET{site_url})]/style.css" />
-------------------------
Sorry, I didn't think about this quite simple solution before..
Thanks. That works in the way that it prints the titre of the current
secteur. I don't know however how to use this string in an html link.
E.g,. say <link rel="stylesheet" href="http://
<here_goes_the_secteur_titre>/style.css" /> should link css from a
different domain that has the same name as my current secteur.
On 2006 Oct 9, at 1:00, Gilles Vincent wrote:
> oops! Sorry, I' made a mistake (my loop returned of course ALL
> sectors)
>
> This should work :
> <BOUCLE_root(RUBRIQUES){id_rubrique=#ID_SECTEUR}>
> #ID_RUBRIQUE, #TITRE
> </BOUCLE_root>
>
> or if you want to avoid confusion in your templates :
> <BOUCLE_root(RUBRIQUES){id_rubrique=#ID_SECTEUR}>
> #_root:ID_RUBRIQUE, #_root:TITRE
> </BOUCLE_root>
>
> 2006/10/9, Barnie <barnie.de.los.angeles@myrealbox.com>:
>>
>> On 2006 Oct 8, at 23:48, Gilles Vincent wrote:
>>
>> > id_secteur is available, like id_rubrique, for articles and
>> sections :
>> > So you can directly do
>> > <BOUCLE1(RUBRIQUES){id_secteur}>
>> > #ID_RUBRIQUE, #TITRE
>> > </BOUCLE1>
>> >
>> > hope it helps
>>
>> Thanks. However, not exactly what I am looking for. This boucle gives
>> me a bunch of numbers and titels. I need only throughout the site one
>> title: the title of the first rubrique (guess u call it "sector")
>> above the root where the current article or subsection is in. I'll
>> try to manage three sites with one spip installation. The first
>> rubriques have the names of these sites. They are the sites,
>> actually. I need these name as part of the corresponding address or
>> path to import stuff (styles e.g.) for this sector (my 1st, 2nd, or
>> 3rd site).
>>
>
Thanks. That works in the way that it prints the titre of the current
secteur. I don't know however how to use this string in an html link.
E.g,. say <link rel="stylesheet" href="http://
<here_goes_the_secteur_titre>/style.css" /> should link css from a
different domain that has the same name as my current secteur.
On 2006 Oct 9, at 1:00, Gilles Vincent wrote:
oops! Sorry, I' made a mistake (my loop returned of course ALL
sectors)
This should work :
<BOUCLE_root(RUBRIQUES){id_rubrique=#ID_SECTEUR}> #ID_RUBRIQUE,
</BOUCLE_root>
or if you want to avoid confusion in your templates :
<BOUCLE_root(RUBRIQUES){id_rubrique=#ID_SECTEUR}> #_root:ID_RUBRIQUE, #_root:TITRE
</BOUCLE_root>
id_secteur is available, like id_rubrique, for articles and
sections :
So you can directly do
<BOUCLE1(RUBRIQUES){id_secteur}> #ID_RUBRIQUE, #TITRE
</BOUCLE1>
hope it helps
Thanks. However, not exactly what I am looking for. This boucle gives
me a bunch of numbers and titels. I need only throughout the site one
title: the title of the first rubrique (guess u call it "sector")
above the root where the current article or subsection is in. I'll
try to manage three sites with one spip installation. The first
rubriques have the names of these sites. They are the sites,
actually. I need these name as part of the corresponding address or
path to import stuff (styles e.g.) for this sector (my 1st, 2nd, or
3rd site).