Tags:
create new tag
view all tags

Question

I was wondering if there was some way to create a variable that you could pass a text a command.

For example I use a particular style of div object to create notes on the Wiki.

I would like to be able to set a variable equal to this div object but in the area where I would normally put my text I would like to put something that would symbolize text that needed to be defined like

   * Set mynote = <div style= "mystyle">$defineme$</div>

Then I would go and use my variable like

%mynote{ "This is a note" }%

This way I don't have a bunch of duplicate div objects all over the Wiki and I can change them all from a central location.

I am not a programmer so I wont be able to easily write something to do this. Is there any existing resource/plugin that will allow me to do this or is something that requires some coding?

Thanks

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Missing functionality

-- GregGardinier - 19 Aug 2007

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

I asked this question before, have a look at http://twiki.org/cgi-bin/view/Support/VariableThatHasAParameter

Probably another way to do this is by something like this?

  • Set STYLE = <div style= "mystyle">
  • Set ENDSTYLE= </div>
%STYLE%SomeText%ENDSTYLE% Probably set the variable to be shorter length, so that it would be easier

-- TommyMartin - 20 Aug 2007

-- TommyMartin - 20 Aug 2007

Marking as answered.

-- CrawfordCurrie - 20 Aug 2007

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-08-20 - CrawfordCurrie
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.