Articles from another rubrique

Hello

I want to show article links from one rubrique ("Administration", e.g.) - and only these - on all pages of all other rubriques.

My code,

  <BOUCLE_admin (RUBRIQUES) {titre==Administration}>
    <BOUCLE_admin_articles (ARTICLES)>
      <a href="#URL_ARTICLE" [title="(#DESCRIPTIF|textebrut)" ]>#TITRE</a>
    </BOUCLE_admin_articles>
  </BOUCLE_admin>

however, delivers all article links of the entire site. The outer boucle is being ignored. What is wrong?

Thanks
Barnie

On 28/02/11 08:54, barnie@ingberlin.com wrote:

The outer boucle is being ignored. What is wrong?

You have not put an {id_rubrique} in the ARTICLES loop in order to "link" it to the outer loop. Add this and it will work (I think!).

Paolo

Yes, that would do the job.

But, I have a multisite installation using the same templates and thus the same code,

  <BOUCLE_admin (RUBRIQUES) {titre==Administration}>
    <BOUCLE_admin_articles (ARTICLES)>
      <a href="#URL_ARTICLE" [title="(#DESCRIPTIF|textebrut)" ]>#TITRE</a>
    </BOUCLE_admin_articles>
  </BOUCLE_admin>

on each site.

The rubrique in question (I.e."Administration"), however, has this very name on each site but a different id on each of these sites, so have the articles . That is why I have to use the name of that rubrique.

My idea was to code in my outer boucle a "regular expression", roughly described in the spip reference manual on page Criteria applicable to all loops - SPIP.

I suppose, either my reg ex is wrong or this feature of spip has some limitations.

More help?

Barnie

On 2011 Feb 28, at 9:11, Paolo wrote:

On 28/02/11 08:54, barnie@ingberlin.com wrote:

The outer boucle is being ignored. What is wrong?

You have not put an {id_rubrique} in the ARTICLES loop in order to "link" it to the outer loop. Add this and it will work (I think!).

Paolo

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

On 28/02/11 10:21, barnie@ingberlin.com wrote:

Yes, that would do the job.

Yes, it will.

The rubrique in question (I.e."Administration"), however, has this very name on
each site but a different id on each of these sites, so have the articles . That
is why I have to use the name of that rubrique.

You use the name in the outer loop. That will then fix the id for the inner loop. different on each site. Just try it.

P.