affiche_droite

This pipeline is used to add content into the "right-hand" column (which is not necessarily actually on the right hand side, depending on the user’s preference settings and language) on the "exec" pages in the private zone. This column normally contains "horizontal" navigation links related to the currently displayed contents, such as in the "In the same section" panel which lists recently published articles in the same section as the current article.

  1. echo pipeline('affiche_droite', array(
  2. 'args'=>array(
  3. 'exec'=>'naviguer',
  4. 'id_rubrique'=>$id_rubrique),
  5. 'data'=>''));

Download

This pipeline accepts the "exec" page name displayed as a parameter, as well as an optional identifier for the object currently being read, e.g. "id_rubrique".

Example

The "odt2spip" plugin, used to create SPIP articles based on OpenOffice text documents (with the .odt file extension), employs this pipeline to add a form to the section view screen in order to enter an odt filename:

  1. function odt2spip_affiche_droite($flux){
  2. $id_rubrique = $flux['args']['id_rubrique'];
  3. if ($flux['args']['exec']=='naviguer' AND $id_rubrique > 0) {
  4. $icone = icone_horizontale(_T("odtspip:importer_fichier"), "#", "", _DIR_PLUGIN_ODT2SPIP . "images/odt-24.png", false, "onclick='$(\"#boite_odt2spip\").slideToggle(\"fast\"); return false;'");
  5. $out = recuperer_fond('formulaires/odt2spip', array('id_rubrique'=>$id_rubrique, 'icone'=>$icone));
  6. $flux['data'] .= $out;
  7. }
  8. return $flux;
  9. }

Download

Author Mark Baber Published : Updated : 31/05/10

Translations : English, français