SPIP
Article submitted
The article « {par rang_lien}
(https://www.spip.net/ecrire/?exec=article&id_article=6700) » is submitted
for publication. on Monday 6 December 2021.
{par rang_lien}
Monday 6 December 2021 , by jack
In a DOCUMENTS loop, the rang_lien criterion is used to order the linked
documents according to their rank.
Table of contents
- See also
Since SPIP 3.2 it has been possible to order the documents linked to an
object by simply dragging and dropping them.
By default, no order is defined. It becomes defined as soon as a document
is moved. As soon as an order is defined, a « Reset order » button is
displayed at the bottom of the table of linked documents and/or
illustrations.
To display the elements of a DOCUMENTS
loop in the order thus defined,
use the {par rang_lien}
criterion, as in the example below:
<BOUCLE_docs
(DOCUMENTS)
{id_article}
{par rang_lien, num titre, titre}
>
[
(
#LOGO_DOCUMENT
|image_reduire
{200}
)
]
</BOUCLE_docs>
Technically, the order is stored in a rang_lien
field of the
spip_documents_liens
table.
See also|Back to the table of contents
- Criterion par …
(https://www.spip.net/ecrire/?exec=article&id_article=5531) - Les critères communs à toutes les boucles
(https://www.spip.net/ecrire/?exec=article&id_article=900)
— Sent by SPIP (https://www.spip.net/)