Re: Saisies : Récupérer le numéro d'article

Bruno Bergot <[email protected]>
Newsgroups gmane.comp.web.spip.devel
Message-ID <[email protected]>
Hop,

Le 25/11/2020 à 15:27, Stephane Santon a écrit :
> Bonjour,
> 
> Lorsque l'on utilise un champ de saisie "Sélecteur d'article" (dans un 
> formulaire de config par exemple),
> 
> le champ [(#CONFIG{monplugin/splash_art})]
> renvoie un résultat de la forme
> Array ( [0] => article|517 )
> 
> Y a-t-il une fonction Spip toute prête pour en extraire le numéro 
> d'article ou bien est-ce que je passe par explode, ... ?
> 

De mémoire c'est la fonction picker_selected() que tu cherches, cf 
https://git.spip.net/spip/spip/src/branch/master/prive/formulaires/selecteur/inc-sel-articles.html#L1

++
b_b
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.