Changeset 52667 in spip-zone
- Timestamp:
- Oct 6, 2011, 9:35:48 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/plugin_installe/plugin.xml
r52666 r52667 10 10 Ce plugin fournit une balise <code>#PLUGIN_PAS_INSTALLE</code> pour tester qu'un plugin est installé. Ainsi, on peut utiliser une inclusion conditionelle dans le squelette: 11 11 12 {[(#PLUGIN_PAS_INSTALLE{'monplugin'}|?{'',' '})<INCLURE{fond=squelette_plugin}>]} 12 <code>[(#PLUGIN_PAS_INSTALLE{'monplugin'}|?{'',' '})<INCLURE{fond=squelette_plugin}>]</code> 13 13 14 14 Pour que ce test ne fasse pas l'inclusion quand ce plugin n'est pas installé, le test de la balise est "inversé": on test donc qu'un plugin n'est pas installé … … 16 16 This plugin provides a new tag <code>#PLUGIN_PAS_INSTALLE</code> that allows you to test if a plugin is installed or not. This way, you can do a conditional inclusion: 17 17 18 {[(#PLUGIN_PAS_INSTALLE{'monplugin'}|?{'',' '})<INCLURE{fond=squelette_plugin}>]} 18 <code>[(#PLUGIN_PAS_INSTALLE{'monplugin'}|?{'',' '})<INCLURE{fond=squelette_plugin}>]</code> 19 19 20 20 For this test to fail when this plugin is not installed, the test is inverted. Therefore, the tag test if a plugin is NOT installed.
Note: See TracChangeset
for help on using the changeset viewer.