The SIGNATURES loop

The SIGNATURES loop returns a list of petition signatures.

<BOUCLEn(SIGNATURES){criteria...}>

Selection criteria

Any of the following criteria can be used to control which elements are selected :

-  {id_article} returns the signatures to the petition associated with the nominated article.

-  {id_signature} returns the signature corresponding to the current signature identifier.

-  {id_trad} returns the signatures to petitions associated with the current article or to any of that article’s translations (SPIP2).

-  {tout} returns all the signatures from the whole site.

All of these criteria may be conditional and may also be combined together if so desired. For example, {id_trad ?}{id_article ?} is used to select the signatures for a given article or for a collection of translations of an article, depending on the context that the loop is called in (SPIP2).

Display criteria

You can use any of the criteria applicable to all loops.

Warning. In this type of loop, certain sort criteria do not have exactly the same name as the SPIP tags on which they sort :
-  {par nom_email} sorts the results by the #NOM (name) of the signatory ;
-  {par ad_email} sorts the results by the #EMAIL of the signatory.

The tags specific to this loop

These tags are used to represent items retrieved directly from the database. You can also use them as a sort criterion (for example, {par date}).

-  #ID_SIGNATURE returns the unique identifier of the signature message.

-  #ID_ARTICLE returns the identifier of the article with which the petition is associated.

-  #DATE returns the date of publication.

-  #MESSAGE returns the text of the signature.

-  #NOM_EMAIL returns the name of the author of the signature.

-  #EMAIL returns the author’s e-mail address.

-  #NOM_SITE returns the name of the website entered by the author.

-  #URL_SITE returns the URL address of the website entered by the author.

Discussion

Aucune discussion

Ajouter un commentaire

Avant de faire part d’un problème sur un plugin X, merci de lire ce qui suit :

  • Désactiver tous les plugins que vous ne voulez pas tester afin de vous assurer que le bug vient bien du plugin X. Cela vous évitera d’écrire sur le forum d’une contribution qui n’est finalement pas en cause.
  • Cherchez et notez les numéros de version de tout ce qui est en place au moment du test :
    • version de SPIP, en bas de la partie privée
    • version du plugin testé et des éventuels plugins nécessités
    • version de PHP (exec=info en partie privée)
    • version de MySQL / SQLite
  • Si votre problème concerne la partie publique de votre site, donnez une URL où le bug est visible, pour que les gens puissent voir par eux-mêmes.
  • En cas de page blanche, merci d’activer l’affichage des erreurs, et d’indiquer ensuite l’erreur qui apparaît.

Merci d’avance pour les personnes qui vous aideront !

Par ailleurs, n’oubliez pas que les contributeurs et contributrices ont une vie en dehors de SPIP.

Qui êtes-vous ?
[Se connecter]

Pour afficher votre trombine avec votre message, enregistrez-la d’abord sur gravatar.com (gratuit et indolore) et n’oubliez pas d’indiquer votre adresse e-mail ici.

Ajoutez votre commentaire ici

Ce champ accepte les raccourcis SPIP {{gras}} {italique} -*liste [texte->url] <quote> <code> et le code HTML <q> <del> <ins>. Pour créer des paragraphes, laissez simplement des lignes vides.

Ajouter un document

Suivre les commentaires : RSS 2.0 | Atom