Coding with SPIP 3.0
SPIP3.0 Technical Documentation

> > > > rubrique_encours

rubrique_encours

This is used to add contents into the "Proposed for publication" panel displayed for sections. This panel will only be displayed when there is at least one element (article, site, news item...) in that section that has been proposed for publication.

It is called from ecrire/exec/naviguer.php:

  1. pipeline('rubrique_encours', array(
  2. 'args' => array('type' => 'rubrique', 'id_objet' => $id_rubrique),
  3. 'data' => $encours));

Download

Example

The "Forum" plugin uses this pipeline to add a phrase encouraging comments for the articles proposed for publication:

  1. function forum_rubrique_encours($flux){
  2. if (strlen($flux['data'])
  3. AND $GLOBALS['meta']['forum_prive_objets'] != 'non')
  4. $flux['data'] = _T('texte_en_cours_validation_forum') . $flux['data'];
  5. return $flux;
  6. }

Download

  • Author :
  • Published :
  • Updated : 12/05/17
  • Translations : English, français