The SIGNATURES loop returns a list of signatures to petitions associated with articles.
Selection criteria
One of the following criteria is used to control which elements are selected:
- {tout} returns all the signatures from the whole site.
- {id_signature} returns the signature corresponding to the current identifier.
- {id_article} returns the signatures to the petition associated with this article.
Display criteria
You can use 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
In this loop these tags are used to represent items retrieved from the database. You can also use them as a sort criterion (for example, {par date}).
- #ID_SIGNATURE gives the unique identifier of the signature.
- #ID_ARTICLE gives the identifier of the article with which the petition is associated.
- #DATE gives the date of publication.
- #MESSAGE gives the text of the signature.
- #NOM gives the name of the author of the signature.
- #EMAIL gives the author’s e-mail address.
- #NOM_SITE gives the name of the website provided by the author.
- #URL_SITE gives the address (URL) of the website provided by the author.

SPIP 1.9.2