Modify

Opened 16 years ago

Last modified 4 years ago

#2533 new enhancement

Dynamic variables in wiki pages

Reported by: conny@… Owned by: anybody
Priority: normal Component: Request-a-Hack
Severity: normal Keywords:
Cc: Albert, joro75 Trac Release: 0.11

Description

I have several pages that are very similar: among other things there are some that sum up the status different sub-projects for larger "epics", and so on...

The copy-paste method is currently employed to duplicate the "/wiki/projectX/subproject/status" wiki page for each new subproject. This gets tedious (especially for non-techie users) and is prone to human error.

Expanding a variable like $MYVAR in the wiki source from the corresponding querystring parameter would potentially alleviate this by allowing one report page to be used for all the reports.

Example:

== Wikipage ==
[TracQuery(keyword=~$K)]

...(GET /mysite/wiki/StatusReport?K=MyTag) would resolve to:

== Wikipage ==
[TracQuery(keyword=~MyTag)]

Attachments (0)

Change History (5)

comment:1 Changed 15 years ago by Matt Callaghan

This would be very useful indeed.

Another good example:

The wiki link:

Please open a [/newticket?owner=$USER new ticket] for yourself.

comment:2 Changed 14 years ago by anonymous

Any news on this one?

comment:3 Changed 10 years ago by Albert

Cc: Albert added; anonymous removed

comment:4 Changed 4 years ago by joro75

I think that I will be able to make this request possible. I didn't program it yet, however I have a good idea on how to realise this.

As this request is generated some years ago, the question is: Are you still interested to have the possibility to use variables on the WikiPage that will be using the values of the URL querystring parameters?

I also probably will be able to generate a WikiMacro that returns the actual userid or username, which can then be used in other macro's and trac-links.

Please let me know if you are still interested, or if it is not needed anymore.

comment:5 Changed 4 years ago by joro75

Cc: joro75 added

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain anybody.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.