! Introduction d'une balise #PLUGIN

old news (I was on holidays :wink:

Templates can now display some information about the installed plugins

#PLUGIN returns a serialised list of activated plugins
#PLUGIN{myPlugin} returns 1 if the plugin is installed and activated (0 if not) [this is usefull to do conditional <include(…){}> in the templates, for ex.]
#PLUGIN{myPlugin, info} returns a property ‹ info ›.

The list of properties that can be displayed isn’t actually fixed but it will be detailled in the documentation of the next stable version.

.Gilles
---------- Forwarded message ----------
From: James <james@rezo.net>
Date: 12 août 2007 14:41
Subject: [spip-dev] ! Introduction d’une balise #PLUGIN
To: spip-core@rezo.net

Salut,

on peut désormais afficher des infos sur les plugins actifs dans un
squelette.

#PLUGIN affiche une liste serialisée des plugins actifs (on liste les
prefixes)
#PLUGIN{truc} renvoie vrai (1) si le plugin truc est actif (0 sinon)
#PLUGIN{truc, info} renvoie une information ‹ info ›.

la liste des informations affichables devraient s’enrichir
progressivement, et devra être détaillé dans la doc le moment venu.


James


liste: http://listes.rezo.net/mailman/listinfo/spip-dev
doc: http://www.spip.net/
dev: http://trac.rezo.net/trac/spip/
irc://irc.freenode.net/spip