Home > Web > Coriolis Platform Website

Coriolis Platform Website

I created the Coriolis Platform website in 2007. It is hosting the documentation for the UVMAT and CIV programs develloped with Joel Sommeria.

For this website, I modified the language behaviour of the SPIP rubrique loops, in order to have the following behaviour :
- if only one translation of the article exists (the original traduction), publish it whatever the language requested is.
- if a translation of the original traduction of an article exist, publish the requested translation.

This is obtained using the following loops, and the origine_traduction filter :

<BOUCLE_articles_rubrique(ARTICLES){branche}{par num titre} {!par date} {pagination}{origine_traduction}>
<B_traductions>
<BOUCLE_traductions(ARTICLES){traduction}{lang}>

code to display the article...
for instance
<h3>
<a href="#URL_SITE_SPIP/#URL_ARTICLE" [title="(#DESCRIPTIF|textebrut|entites_html)"]>[(#TITRE|supprimer_numero)]</a>

</BOUCLE_traductions>
</B_traductions>

same code again...
<h3>
<a href="#URL_SITE_SPIP/#URL_ARTICLE" [title="(#DESCRIPTIF|textebrut|entites_html)"]>[(#TITRE|supprimer_numero)]</a>

<//B_traductions>

Louis Gostiaux

SPIP | | Site Map | Follow site activity RSS 2.0