Le champ type de la table spip_zitems est renommé en type_ref pour éviter les nombreuses collusions (par exemple avec Zpip v1) dans les modèles car depuis SPIP 3 toutes les variables d'environnement sont transmises et type est beaucoup trop générique
parent
db483e03c5
commit
1b3ebc48ff
@ -1,13 +1,12 @@
|
||||
<BOUCLE_sousitems(ZITEMS){id_parent=#ENV{id_parent}}{par type}{type?}>
|
||||
<BOUCLE_sousitems(ZITEMS){id_parent=#ENV{id_parent}}{par type_ref}{type_ref?}>
|
||||
<div class="sousitem">
|
||||
[(#TYPE|zotspip_icone_type{#MIMETYPE,#FICHIER})]
|
||||
[(#TYPE|=={attachment}|oui)
|
||||
[(#TYPE_REF|zotspip_icone_type{#MIMETYPE,#FICHIER})]
|
||||
[(#TYPE_REF|=={attachment}|oui)
|
||||
[(#FICHIER|oui)[<a href="#URL_PAGE{zotspip_file,zitem=#ID_ZITEM}">(#TITRE)</a>] [(#POIDS|>{0}|oui)[(#POIDS|taille_en_octets)]] [(<a href="(#URL)"><:zotspip:source:></a>)]]
|
||||
[(#FICHIER|non)[<a href="#URL">(#TITRE)</a>]]
|
||||
][(#TYPE|=={note}|oui)
|
||||
][(#TYPE_REF|=={note}|oui)
|
||||
<:zotero:itemtypes_note:>
|
||||
<div class="note">#RESUME</div>
|
||||
]
|
||||
|
||||
</div>
|
||||
</BOUCLE_sousitems>
|
@ -1 +1 @@
|
||||
<BOUCLE_zitem(ZITEMS){id_zitem=#ENV{zitem}}{type==attachment}>[(#FICHIER|zotspip_recuperer_fichier{#TITRE,#ID_ZITEM,#MIMETYPE,#JSON})]</BOUCLE_zitem>
|
||||
<BOUCLE_zitem(ZITEMS){id_zitem=#ENV{zitem}}{type_ref==attachment}>[(#FICHIER|zotspip_recuperer_fichier{#TITRE,#ID_ZITEM,#MIMETYPE,#JSON})]</BOUCLE_zitem>
|
Loading…
Reference in New Issue