Coding with SPIP 2.1
SPIP 2.1 Technical Documentation

> > > > accueil_encours

accueil_encours

This pipeline is used to add content to the centre of the home page in the private zone, e.g. to display new articles proposed for publication.

  1. $res = pipeline('accueil_encours', $res);

This pipeline accepts a text string as argument and returns the supplemented text as output.

Example

The "breves" plugin, if it existed, might use this pipeline to add the list of recently proposed news items:

  1. function breves_accueil_encours($texte){
  2. $texte .= afficher_objets('breve', afficher_plus(generer_url_ecrire('breves')) . _T('info_breves_valider'), array("FROM" => 'spip_breves', 'WHERE' => "statut='prepa' OR statut='prop'", 'ORDER BY' => "date_heure DESC"), true);
  3. return $texte;
  4. }

Download

  • Author :
  • Published :
  • Updated : 31/05/10
  • Translations : English, français