We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

Question

I'm sure this question just has to have been asked before, however I've not been so lucky as to find an answer!

I was hoping to find out if it is possible to have other variables expand upon topic creation, this would be especially helpful for things like templates for our status reports.

For Example:

lets say we have the tag %MONKEY% that when displayed shows an image of a monkey, however whenever I go to edit the page I just see %MONKEY%

What I would like is to do something like call:

%EXPAND{%MONKEY%}% and have it expand monkey so when I edit the topic I instead see.

<img src="url to picture of monkey" />

is this possible?

If not, how much work would it take to create an ExpandPlugin? ?

Any help would be much apreciated

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux
Web server: Apache
Perl version:  
Client OS: Windows XP SP2
Web Browser: IE7
Categories: Plugins

-- TWikiGuest - 23 May 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

This is considered for the core after a long debate, see ControlOverVariableExpansion.

-- PeterThoeny - 23 May 2008

Closing this after more than 30 days of inactivity.

-- PeterThoeny - 02 Aug 2008

 
Change status to:
Topic revision: r3 - 02 Aug 2008 - 07:00:13 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback