Server : Apache System : Linux webd348.cluster026.gra.hosting.ovh.net 5.15.148-ovh-vps-grsec-zfs-classid #1 SMP Thu Feb 8 09:41:04 UTC 2024 x86_64 User : hednacluml ( 122243) PHP Version : 8.3.9 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/hednacluml/univers/plugins/auto/saisies/saisies-vues/ |
[(#REM) ### /!\ selecteur (spip Bonux) ### Attention, ce qui est retourne est un tableau : _request($name) = array('rubrique|3', 'rubrique|9', 'rubrique|10'); Une fonction de SPIP Bonux permet de récupérer un tableau d'identifiants par type d'objet : [(#CHAMP|picker_selected{article})] Cette fonction peut etre pratique dans une boucle en utilisant le critere IN ] [(#SET{selection,#VALEUR|saisies_picker_selected_par_objet})] <BOUCLE_au_moins_un(CONDITION){si #GET{selection}}> <BOUCLE_un(DATA){source table,#GET{selection}}{si (#GET{selection}|count|=={1})}> <p> [(#OBJET|objet_info{texte_objet}|_T)] #ID_OBJET : #INFO_TITRE{#OBJET,#ID_OBJET} </p> </BOUCLE_un> <B_plusieurs> <ul> <BOUCLE_plusieurs(DATA){source table,#GET{selection}}{si (#GET{selection}|count|>{1})}> <li class="choix"> [(#OBJET|objet_info{texte_objet}|_T)] #ID_OBJET : #INFO_TITRE{#OBJET,#ID_OBJET} </li> </BOUCLE_plusieurs> </ul> </B_plusieurs> </BOUCLE_au_moins_un>