Table of Contents
kixovar plugin
Compatible with DokuWiki
No compatibility info given!
The missing download url means that this extension cannot be installed via the Extension Manager. Please see Publishing a Plugin on dokuwiki.org. Recommended are public repository hosts like GitHub, GitLab or Bitbucket.
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Similar to easyvar, fields, macros, replace, textinsert
http://www.kixo.fr/content/view/21/31/ 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:
<?php $conf['var'] =array('heure' => 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:
<?php $conf['var'] =array('heure' => date('H:i'),'dk'=>'DokuWiki'); ?>
StinkyWinky 26/11/08
But which default.php? There are several in the DokuWiki? — 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
— atronoush 2011/06/18 13:06