DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:kixovar

kixovar plugin

Compatible with DokuWiki

No compatibility info given!

plugin Insert your own variables

Last updated on
2008-02-17
Provides
Syntax
Conflicts with
easyvar

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

Tagged with replace

http://www.kixo.fr/content/view/21/31/

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
atronoushatronoush

2011/06/18 13:06
plugin/kixovar.txt · Last modified: 2015-04-04 05:53 by PatrickBrown