wiki:PageVariableMacro

Version 6 (modified by anonymous, 16 years ago) (diff)

--

PageVariableMacro

Notice: This plugin is unmaintained and available for adoption.

Description

This Macro allows you declare and use pagewide variables as shown in the examples below (more will be added soon, after I tested some more).

I tested it with trac 0.10, it should also work with 0.9 and 0.8.

The 0.11 version is not working yet.

Bugs/Feature Requests

Existing bugs and feature requests for PageVariableMacro are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from [download:pagevariablemacro here].

Source

You can check out PageVariableMacro from here using Subversion, or browse the source with Trac.

Example

[[PageVariable(milestone,Proj5M3)]]
Our current milestone is [[Variable(milestone)]]
...
In milestone [[PageVariable(milestone)]] we will ...

This will show up as:

Our current milestone is Proj5M3
...
In milestone Proj5M3 we will ...

Recent Changes

16515 by rjollos on 2017-04-16 01:43:49
Fix indentation
16397 by rjollos on 2017-03-25 09:37:00
Remove obsolete "0.9" code
16395 by rjollos on 2017-03-25 09:25:02
Remove obsolete "0.8" directories
16298 by rjollos on 2017-03-07 17:22:48
Avoid collisions between page variables and request arguments
16297 by rjollos on 2017-03-07 04:50:38
Make compatible with Trac 1.0 and later

Fixes #12719.

3448 by pmonnaie on 2008-04-02 19:09:47
The other part of the macro to set the variable
3447 by pmonnaie on 2008-04-02 19:07:10
Split into 2 macros, this is the one to get the variable (and possibly
place it into some text or other macro)
3441 by pmonnaie on 2008-04-01 20:37:56
better, but still not working :(
3440 by pmonnaie on 2008-04-01 20:29:15
yay
3439 by pmonnaie on 2008-04-01 20:28:45
3438 by pmonnaie on 2008-04-01 20:28:33
3437 by pmonnaie on 2008-04-01 20:28:19
3436 by pmonnaie on 2008-04-01 20:20:31
0.9
3435 by pmonnaie on 2008-04-01 20:20:12
up
3434 by pmonnaie on 2008-04-01 20:19:26
3433 by pmonnaie on 2008-04-01 20:19:07
upload
3432 by pmonnaie on 2008-04-01 20:10:06
First upload
3431 by pmonnaie on 2008-04-01 19:42:48
New hack PageVariableMacro, created by pmonnaie
(more)

Author/Contributors

Author: pmonnaie
Contributors: