====== kixovar plugin ====== ---- plugin ---- description: Insert your own variables author : Kixo SARL email : infos@kixo.fr type : syntax lastupdate : 2008-02-17 compatible : depends : conflicts : similar : easyvar, replace, fields, macros, textinsert tags : !discontinued, replace ---- [[http://www.kixo.fr/content/view/21/31/]] FIXME URL broken ===== In English ===== 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: date('H:i'),'dk'=>'DokuWiki'); ?> ====== Discussion ====== I don't understand how this works - I understand the **''@test@''** part but just how do you assign "test" to a variable and where do you do this? Can I see an example? PerryM 4/20/08 ===== Example ===== You have to edit the file ''default.php'' according to your needs. Lets say, you want to define two variables: ^ variable ^ value ^ | heure | H:i | | dk | DokuWiki | The ''default.php'' must look like: date('H:i'),'dk'=>'DokuWiki'); ?> StinkyWinky 26/11/08 ---- But which default.php? There are several in the DokuWiki? --- //[[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//