Warning: Use of undefined constant USER_AUTH_VERSION - assumed 'USER_AUTH_VERSION' (this will throw an Error in a future version of PHP) in /home/clients/8ef696c5eb3119a3a1c9089013d2fece/web/cookbook/userauth.php on line 31

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; UserSessionVars has a deprecated constructor in /home/clients/8ef696c5eb3119a3a1c9089013d2fece/web/cookbook/userauth/UserSessionVars.php on line 39

Warning: Use of undefined constant USERSESSIONVARS - assumed 'USERSESSIONVARS' (this will throw an Error in a future version of PHP) in /home/clients/8ef696c5eb3119a3a1c9089013d2fece/web/cookbook/userauth/UserSessionVars.php on line 37

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; HtPasswd has a deprecated constructor in /home/clients/8ef696c5eb3119a3a1c9089013d2fece/web/cookbook/userauth/HtPasswd.php on line 55

Warning: Use of undefined constant HTPASSWD_CLASS - assumed 'HTPASSWD_CLASS' (this will throw an Error in a future version of PHP) in /home/clients/8ef696c5eb3119a3a1c9089013d2fece/web/cookbook/userauth/HtPasswd.php on line 53

Deprecated: Function create_function() is deprecated in /home/clients/8ef696c5eb3119a3a1c9089013d2fece/web/pmwiki.php on line 501
Valdemar.fr

En Français

Traduction

Pmwiki.org(approuver les sites)

En Anglais

Menu de la version anglaise

Configurer les liens InterMap

Traduction à revoir

Cette page décrit comment un administrateur du wiki peut créer des Liens InterMap additionnels.

Le fichier intermap.txt dans le dossier des scripts spécifie les liens Intermap par défaut qui sont distribués avec PmWiki. Chaque ligne d'intermap.txt à la forme suivante:

HostPrefix http://www.somehost.com/partial/url/

Par exemple, intermap.txt contient les entrée suivantes: ISBN http://www.amazon.com/exec/obidos/ASIN/ IMDB http://www.imdb.com/find?q= Meatball http://www.usemod.com/cgi-bin/mb.pl? PmWiki http://www.pmichaud.com/wiki/PmWiki/ UseMod http://www.usemod.com/cgi-bin/wiki.pl? Wiki http://c2.com/cgi/wiki? Wikipedia http://www.wikipedia.com/wiki/

Pour créer vos propre Liens InterMap, n'éditez pas le fichier intermap.txt directement ! Vous perdriez vos modifications lors d'une mise à jour de PmWiki. A la place créez un fichier nommé localmap.txt dans le sous-dossier local/ contenant vos liens InterMap dans la forme décrite ci-dessus. PmWiki lira automatiquement vos liens après le chargement des entrées d'intermap.txt.

Vous pouvez aussi définir des entrées InterMap où le texte entré est substitué au milieu d'une URL. Incluez simplement '$1' dans l'URL à la place où vous voulez que la substitution ait lieu. Par exemple: Jargon http://www.catb.org/~esr/jargon/html/$1.html convertirait Jargon:F/feature-creep en http://www.catb.org/~esr/jargon/html/F/feature-creep.html.

Variables et liens intermap

Il est possible d'utiliser des variables en parallèle avec les URLs dans la table de Liens InterMap.
Par exemple, vous pouvez ajouter quelque chose comme ceci dans votre fichier local/localmap.txt, créant les raccourcis ThisWiki: et ThisPage::

ThisWiki? $ScriptUrl ThisPage? $PageUrl


<< Sécurité | Index de la documentation | Balises personnalisées >>


Traduction de PmWiki.CustomInterMap Page originale sur PmWikiFr.CustomInterMap - Référencé par
Dernières modifications:
PmWikiFr.CustomInterMap: 10 septembre 2011 à 17h40
PmWiki.CustomInterMap: 08 novembre 2011 à 12h15

Valdemar.fr est un site personnel sur l'univers des Hérauts de Valdemar à but non commercial. Nous n'avons aucun lien avec Mercedes Lackey. Les textes ne sont pas libres de droit. Merci de prendre contact avec l'administrateur du site pour toute utilisation. Valdemar, une création de Mercedes Lackey. www.mercedeslackey.com