standing alone secteurs - how to?

I am trying for a while now to « separate » the the secteurs (lowest rubriques) on my site in a way that on all front end pages for rubriques, articles, breves, … only stuff from the current secteur is visible, i.e. the visitor will not see anything from another secteur and therefore will not be able to go into another secteur.

Of course, that is not feasible for the first overview screen based on squelette sommaire.

Basically, my rubriques.html is as follows.

<BOUCLE_rubrique_principal(RUBRIQUES) {id_rubrique}>
… … …

<INCLURE{fond=inc-rubriques}{id_rubrique}>

… … …
</BOUCLE_rubrique_principal>

For the included rubriques listing I’m using basically the following inc-rubriques.html.

<B_rubriques>

  • #TITRE
      #EXPOSE{' '}
    • #TITRE

I know that tasks should be accomplished with « Multi-site provisioning with a shared SPIP kernel » (http://www.spip.net/en_article3581.html). That does not work for me. And the article « The RUBRIQUES Loop (Sections) » (http://www.spip.net/en_article2084.html) did not give me any clue what criteria to apply and how. Generally speaking, the documentation of spip is the hardest part for me.

Thank you for your help.

2007/7/4, spip@ingberlin.com <spip@ingberlin.com>:

I am trying for a while now to "separate" the the secteurs (lowest
rubriques) on my site in a way that on all front end pages for rubriques,
articles, breves, ... only stuff from the current secteur is visible, i.e.
the visitor will not see anything from another secteur and therefore will
not be able to go into another secteur.

Of course, that is not feasible for the first overview screen based on
squelette sommaire.

Basically, my rubriques.html is as follows.

<!-- rubriques.html -->
<BOUCLE_rubrique_principal(RUBRIQUES) {id_rubrique}>
... ... ...
<INCLURE{fond=inc-rubriques}{id_rubrique}>
</INCLURE>
... ... ...
</BOUCLE_rubrique_principal>

Personnaly I would try in the included file the same loops except the
main one :

<B_rubriques>
  <ul>
  <BOUCLE_rubriques(RUBRIQUES){id_secteur}{racine}>
  <li>

etc..

Your loop doesn't work because you do not take into account the
{id_rubrique} which is in #ENV (you can see it with "&var_mode=debug"
in your url)
- in fact it's lost when you are inside BOUCLE_rubriques -

.Gilles

---

For the included rubriques listing I'm using basically the following
inc-rubriques.html.

<!-- inc-rubriques.html -->
<B_rubriques>
<ul>
<BOUCLE_rubriques(RUBRIQUES){racine}{par titre}>
<li>
#TITRE
<B_sous_rubriques>
<ul>
<BOUCLE_sous_rubriques(RUBRIQUES) {id_parent} {par titre}>
<B_test_expose>
<BOUCLE_test_expose(RUBRIQUES) {id_enfant}>
#EXPOSE{' '}
</BOUCLE_test_expose>
<li>
#TITRE
<BOUCLE_re(BOUCLE_sous_rubriques)>
</BOUCLE_re>
</li>
</B_test_expose>
</BOUCLE_sous_rubriques>
</ul>
</B_sous_rubriques>
</li>
</BOUCLE_rubriques>
</ul>
</B_rubriques>

I know that tasks should be accomplished with "Multi-site provisioning with
a shared SPIP kernel"
(Multi-site provisioning with a shared SPIP kernel - SPIP). That does not
work for me. And the article "The RUBRIQUES Loop (Sections)"
(The RUBRIQUES Loop (Sections) - SPIP) did not give me
any clue what criteria to apply and how. Generally speaking, the
documentation of spip is the hardest part for me.

Thank you for your help.

_______________________________________________
spip-en@rezo.net -
http://listes.rezo.net/mailman/listinfo/spip-en