DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:kixovar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:kixovar [2009-05-23 11:28] – Question added bmrberlinplugin:kixovar [2019-08-17 16:08] (current) – ​!discontinued tag Aleksandr
Line 10: Line 10:
 depends    :  depends    : 
 conflicts  conflicts 
-similar    :  +similar    : easyvar, replace, fields, macros, textinsert 
-tags       : syntaxvar+tags       : !discontinuedreplace 
 ---- ----
-[[http://www.kixo.fr/content/view/21/31/]]+ 
 +[[http://www.kixo.fr/content/view/21/31/]] FIXME URL broken
  
  
Line 19: Line 21:
  
 translated into English (BabelFish): KixoVar is a plugin DokuWiki which makes it possible to replace text by a variable. The goal is to be able automatically to modify the same term in all the wiki. Syntax: **''@test@''** is replaced by **''value tested''** The value can be a character string or any other chain generated by PHP (functions dates...)  translated into English (BabelFish): KixoVar is a plugin DokuWiki which makes it possible to replace text by a variable. The goal is to be able automatically to modify the same term in all the wiki. Syntax: **''@test@''** is replaced by **''value tested''** The value can be a character string or any other chain generated by PHP (functions dates...) 
 +
 +==== Setup Variables ====
 +
 +To setup variables, edit the file ''default.php'' in the plugins ''conf'' directory. Lets say, you want to define two variables:
 +
 +^ variable ^ value ^
 +| heure | H:i | 
 +| dk | DokuWiki |
 +
 +The ''default.php'' must look like:
 +
 +<code php>
 +<?php
 + $conf['var'] =array('heure' => date('H:i'),'dk'=>'DokuWiki');
 +?>
 +
 +</code>
  
 ====== Discussion ====== ====== Discussion ======
Line 42: Line 61:
 But which default.php? There are several in the DokuWiki? But which default.php? There are several in the DokuWiki?
  --- //[[bmrberlin@gmx.de|Bernd M. Radowicz]] 2009/05/23 11:26//  --- //[[bmrberlin@gmx.de|Bernd M. Radowicz]] 2009/05/23 11:26//
 +> Means the default.php inside conf folder inside easyVar folder i.e. //lib\plugins\easyVar\Conf\default.php//
 +>  --- [[user>atronoush|atronoush]] //2011/06/18 13:06//
plugin/kixovar.1243070938.txt.gz · Last modified: 2009-10-10 17:45 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki